ログイン済の状態でログインページ等にアクセスした際のリダイレクト先が間違っていたので修正 (#75)

refs #69
This commit is contained in:
shibafu
2019-01-31 00:45:16 +09:00
committed by GitHub
parent 57715b9a82
commit 1835776a9c

View File

@@ -18,7 +18,7 @@ class RedirectIfAuthenticated
public function handle($request, Closure $next, $guard = null) public function handle($request, Closure $next, $guard = null)
{ {
if (Auth::guard($guard)->check()) { if (Auth::guard($guard)->check()) {
return redirect('/home'); return redirect()->route('home');
} }
return $next($request); return $next($request);