Skip to content

Commit 3933837

Browse files
committed
Change hard-coded '/login' string to named route
1 parent 9b02e5f commit 3933837

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)