This commit is contained in:
2018-10-28 22:23:20 -05:00
parent 0a97838321
commit f065e40ae4

View File

@@ -26,7 +26,7 @@ class RedirectIfAuthenticated
*/ */
public function handle($request, Closure $next, $guard = null) public function handle($request, Closure $next, $guard = null)
{ {
dd($request); //dd($request);
if($request->pathInfo == '/login') { if($request->pathInfo == '/login') {
if (Auth::guard($guard)->check()) { if (Auth::guard($guard)->check()) {
return redirect('/dashboard'); return redirect('/dashboard');