May be use follow code
$user = new User;
$user->name = 'demo';
$user->email = '[email protected]';
$user->save();
$id_after_insert = $user->id;
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community