Laravel: obtenha o último id
DB::table('myTable')->orderBy('id','desc')->first();
Thibaudkhan
DB::table('myTable')->orderBy('id','desc')->first();