From 401c041fcdd7871be68a6d29a197786821aadb87 Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Thu, 1 Oct 2020 17:50:12 +0100 Subject: [PATCH] Update LocaleCookieRedirect.php --- src/Middleware/LocaleCookieRedirect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Middleware/LocaleCookieRedirect.php b/src/Middleware/LocaleCookieRedirect.php index e94b23d..f8c72b6 100644 --- a/src/Middleware/LocaleCookieRedirect.php +++ b/src/Middleware/LocaleCookieRedirect.php @@ -39,7 +39,7 @@ public function handle(Request $request, Closure $next) $locale = $request->cookie('locale', null); - if (! empty($locale) && ! $this->isDefaultLocaleHidden($locale)) { + if ( ! empty($locale) && ! $this->isDefaultLocaleHidden($locale)) { if ( ! is_null($redirect = $this->getLocalizedRedirect($locale))) return $redirect->withCookie(cookie()->forever('locale', $locale)); }