diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index c2cb4c90e..4437b6907 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -28,7 +28,7 @@ class RedirectIfAuthenticated { if($request->pathInfo == '/login') { if (Auth::guard($guard)->check()) { - return redirect('/dashboard'); + return redirect('/dashboard')->with('Sucess', '/login path'); } return $next($request);