diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index 4437b6907..674c6c43b 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -26,9 +26,10 @@ class RedirectIfAuthenticated */ public function handle($request, Closure $next, $guard = null) { + dd($request); if($request->pathInfo == '/login') { if (Auth::guard($guard)->check()) { - return redirect('/dashboard')->with('Sucess', '/login path'); + return redirect('/dashboard'); } return $next($request);