Skip to content

Commit

Permalink
Update LocaleCookieRedirect.php
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc authored Oct 1, 2020
1 parent 1de99d4 commit 401c041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/LocaleCookieRedirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 401c041

Please sign in to comment.