Get the Last Inserted ID Laravel
Get Laravel Insert Statement ID Row. Simple 4 Methods to follow.
These are short code snippets on how to get your last inserted ID on Laravel. 1) Using the insertGetId() method $id = DB::table('users')->insertGetId( [ 'name' => 'first' ] ); dd($id);