returning redirectifauthenticated middleware to previous version

This commit is contained in:
2018-11-04 13:25:03 -06:00
parent bb95d0738c
commit 3d21d66dee

View File

@@ -17,14 +17,15 @@ use Seat\Eseye\Eseye;
class RedirectIfAuthenticated
{
/*
public function handle($request, Closure $next, $guard = null)
{
dd($next);
if (Auth::guard($guard)->check()) {
return redirect()->to('/dashboard');
}
return $next($request);
}
*/
/**
@@ -35,7 +36,6 @@ class RedirectIfAuthenticated
* @param string|null $guard
* @return mixed
*/
/*
public function handle($request, Closure $next, $guard = null)
{
if($request->pathInfo == '/login' && Auth::guard($guard)->check()) {
@@ -51,7 +51,6 @@ class RedirectIfAuthenticated
return $next($request);
}
}
*/
/**
* Update the user information in the database