laravel eloquent get last record

44

Dogs::latest()->take(5)->get();
Model::latest()->first();
$last = DB::table('items')->latest()->first();
return DB::table('files')->order_by('upload_time', 'desc')->first();

Comments

Submit
0 Comments