Skip to content

Commit da9760f

Browse files
authored
Merge pull request laravel#4143 from kneipp/master
Change hard-coded '/login' param to named route
2 parents 9b02e5f + 3933837 commit da9760f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Exceptions/Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ protected function unauthenticated($request, AuthenticationException $exception)
6060
return response()->json(['error' => 'Unauthenticated.'], 401);
6161
}
6262

63-
return redirect()->guest('login');
63+
return redirect()->guest(route('login'));
6464
}
6565
}

0 commit comments

Comments
 (0)