Get last insert ID using Laravel Eloquent

Laravel, 2015-06-16 23:15:30 UTC

The code is

$theId = DB::getPdo()->lastInsertId();

 

Sumber: http://www.develbook.com/2015/02/get-last-insert-id-using-laravel.html

 


Share: