Laraveleinsatz mit ID
$id = DB::table('users')->insertGetId([
'email' => '[email protected]',
'votes' => 0
]);
Jittery Jay
$id = DB::table('users')->insertGetId([
'email' => '[email protected]',
'votes' => 0
]);
$data = User::create(['name'=>'first']);
dd($data->id);