closure testing

This commit is contained in:
2018-11-04 13:22:07 -06:00
parent 5e19d70482
commit bb95d0738c

View File

@@ -19,8 +19,9 @@ class RedirectIfAuthenticated
public function handle($request, Closure $next, $guard = null)
{
dd($next);
if (Auth::guard($guard)->check()) {
return redirect('/home');
return redirect()->to('/dashboard');
}
return $next($request);
}