Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel get ID from insert

$data = User::create(['name'=>'first']);
dd($data->id);
	
Source by www.laravelcode.com #
 
PREVIOUS NEXT
Tagged: #laravel #ID #insert
ADD COMMENT
Topic
Name
3+8 =