Browse Source

Change hard-coded '/login' string to named route

Fabrício Kneipp 7 years ago
parent
commit
39338373b9
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'));
     }
 }