Answers for "laravel db first and last"

PHP
11

Last recode of DB using laravel

Model::latest()->first();
Posted by: Guest on May-06-2020
0

how to take last entry in database in laravel Method Two

$last2 = DB::table('items')->orderBy('id', 'DESC')->first();
Posted by: Guest on July-11-2020

Browse Popular Code Answers by Language