From 256e7e93056a8262aca37b45a2f70420d6398415 Mon Sep 17 00:00:00 2001 From: Fred Bradley Date: Thu, 11 Apr 2024 14:03:01 +0100 Subject: [PATCH] add middleware in --- app/Http/Controllers/Auth/FireflyAuth.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/Auth/FireflyAuth.php b/app/Http/Controllers/Auth/FireflyAuth.php index fd9f6ec..9b581a4 100644 --- a/app/Http/Controllers/Auth/FireflyAuth.php +++ b/app/Http/Controllers/Auth/FireflyAuth.php @@ -16,6 +16,9 @@ trait FireflyAuth { use AuthenticatesUsers; + public function __construct() { + $this->middleware('guest')->except('logout'); + } public function logout(Request $request): RedirectResponse { auth()->logout();