Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel db insert get last id

$id = DB::table('users')

  ->insertGetId(

	  ['name' => 'Akash Savani', 'email'=>'akash@gmail.com']

);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #db #insert #id
ADD COMMENT
Topic
Name
9+4 =