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 www.itsolutionstuff.com #
 
PREVIOUS NEXT
Tagged: #laravel #db #insert #id
ADD COMMENT
Topic
Name
7+1 =