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)); }