DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
laravel query builder get last insert id
$id = DB::table('users')->insertGetId( ['email' => 'john@example.com', 'votes' => 0] );
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#laravel
#query
#builder
#insert
#id
ADD COMMENT
Topic
COMMENT
Name
4+5 =
Submit