redirect to home if authed

This commit is contained in:
Taylor Otwell 2016-07-23 15:39:33 -05:00
parent 592b7a2bd9
commit 24766d479d
1 changed files with 1 additions and 1 deletions

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('/'); return redirect('/home');
} }
return $next($request); return $next($request);