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']

);
 
PREVIOUS NEXT
Tagged: #laravel #db #insert #id
ADD COMMENT
Topic
Name
1+8 =