Browse Source

Merge pull request #4143 from kneipp/master

Change hard-coded '/login' param to named route
Taylor Otwell 8 years ago
parent
commit
da9760fd09
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Exceptions/Handler.php

+ 1 - 1
app/Exceptions/Handler.php

@@ -60,6 +60,6 @@ class Handler extends ExceptionHandler
             return response()->json(['error' => 'Unauthenticated.'], 401);
         }
 
-        return redirect()->guest('login');
+        return redirect()->guest(route('login'));
     }
 }