diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 409ee2e95a..85a386dcad 100755 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -83,6 +83,6 @@ protected function unauthenticated($request, AuthenticationException $exception) return response()->json(['error' => 'Unauthenticated.'], 401); } - return redirect()->guest(route('login'))->with('fails', 'Your session has expired. Please login'); + return redirect()->guest(route('login')); } }