one line
This commit is contained in:
parent
17e2ce73ed
commit
e0c4fd8b8a
|
@ -18,10 +18,8 @@ class RedirectIfAuthenticated
|
|||
*/
|
||||
public function handle($request, Closure $next, $guard = null)
|
||||
{
|
||||
if (Auth::guard($guard)->check()) {
|
||||
return redirect(RouteServiceProvider::HOME);
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
return Auth::guard($guard)->check()
|
||||
? redirect(RouteServiceProvider::HOME)
|
||||
: $next($request);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue