open_in_new
content_copy
$id = DB::table('users')->insertGetId([ 'email' => 'john@example.com', 'votes' => 0 ]);