From 724ecf8ff56a03df0d375528236b674341524cc4 Mon Sep 17 00:00:00 2001 From: mohammad-alavi Date: Sun, 10 Oct 2021 12:08:31 +0330 Subject: [PATCH] fix redirect --- .../Authentication/UI/WEB/Controllers/LogoutController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Containers/AppSection/Authentication/UI/WEB/Controllers/LogoutController.php b/app/Containers/AppSection/Authentication/UI/WEB/Controllers/LogoutController.php index f04071b2e..0d106cf3c 100644 --- a/app/Containers/AppSection/Authentication/UI/WEB/Controllers/LogoutController.php +++ b/app/Containers/AppSection/Authentication/UI/WEB/Controllers/LogoutController.php @@ -5,6 +5,7 @@ use App\Containers\AppSection\Authentication\Actions\WebLogoutAction; use App\Containers\AppSection\Authentication\UI\WEB\Requests\LogoutRequest; use App\Ship\Parents\Controllers\WebController; +use App\Ship\Providers\RouteServiceProvider; use Illuminate\Contracts\Foundation\Application; use Illuminate\Http\RedirectResponse; use Illuminate\Routing\Redirector; @@ -14,6 +15,7 @@ class LogoutController extends WebController public function logout(LogoutRequest $request): Redirector|Application|RedirectResponse { app(WebLogoutAction::class)->run(); - return redirect('/'); + + return redirect()->route(RouteServiceProvider::HOME); } }