redirect in laravel with route name with pass id code example Example: laravel return redirect to named route return redirect()->route('login');