From 19d93ea2ffe43a3dbf0ea9eb10deed25c7acb750 Mon Sep 17 00:00:00 2001 From: Bezhan Salleh Date: Thu, 25 Jan 2024 21:31:07 +0430 Subject: [PATCH] fixes #79 --- src/Http/Middleware/SwitchLanguageLocale.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Middleware/SwitchLanguageLocale.php b/src/Http/Middleware/SwitchLanguageLocale.php index 5ea7c08..d27a524 100644 --- a/src/Http/Middleware/SwitchLanguageLocale.php +++ b/src/Http/Middleware/SwitchLanguageLocale.php @@ -8,7 +8,7 @@ class SwitchLanguageLocale { - public function handle(Request $request, Closure $next): \Illuminate\Http\Response | \Illuminate\Http\RedirectResponse + public function handle(Request $request, Closure $next): mixed { $locale = session()->get('locale') ?? $request->get('locale')