$id = DB::table('users') ->insertGetId( ['name' => 'Akash Savani', 'email'=>'akash@gmail.com'] );
$id = DB::table('users')->insertGetId( ['email' => 'john@example.com', 'votes' => 0] );
Laravel get last id