DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+8 =
Submit