Answers for "get last row id in laravel 5"

PHP
4

laravel get last 5 records

Dogs::latest()->take(5)->get();
Posted by: Guest on May-23-2021
0

Get last id in laravel

$last3 = DB::table('items')->latest('id')->first();
Posted by: Guest on July-11-2020

Browse Popular Code Answers by Language