Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how get the latest data in database in laravel

$last = DB::table('items')->latest()->first();

$last2 = DB::table('items')->orderBy('id', 'DESC')->first();
 
PREVIOUS NEXT
Tagged: #latest #data #database #laravel
ADD COMMENT
Topic
Name
8+6 =