how to take last entry in database in laravel Method Three

113

how to take last entry in database in laravel Method Three -

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

Comments

Submit
0 Comments