Merge pull request #4143 from kneipp/master

Change hard-coded '/login' param to named route
This commit is contained in:
Taylor Otwell 2017-02-17 13:38:43 -06:00 committed by GitHub
commit da9760fd09
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 redirect()->guest('login');
return redirect()->guest(route('login'));
}
}