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')