Laravel Get Last Record
Model::latest()->first();
TheDutchScorpion
Model::latest()->first();
Dogs::latest()->take(5)->get();
$last = DB::table('items')->latest()->first();
return DB::table('files')->order_by('upload_time', 'desc')->first();
$row = News::count();
$newsid = $row -2;
$news1 = News::all()->last();
$news2 = News::orderBy('created_at', 'desc')->skip($newsid)->take($newsid)->first();
return view('user/start', compact('news1', 'news2', 'newsid'));