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

This commit is contained in:
Fabrício Kneipp 2017-02-17 15:36:28 -02:00
parent 9b02e5fab8
commit 39338373b9
1 changed files with 1 additions and 1 deletions

View File

@ -60,6 +60,6 @@ protected function unauthenticated($request, AuthenticationException $exception)
return response()->json(['error' => 'Unauthenticated.'], 401); return response()->json(['error' => 'Unauthenticated.'], 401);
} }
return redirect()->guest('login'); return redirect()->guest(route('login'));
} }
} }