mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
forget old lang cookies
This commit is contained in:
@@ -20,6 +20,7 @@ class SetTimezoneMiddleware
|
||||
$locale = Cookie::get('lang') ?: config('app.locale');
|
||||
if (str($locale)->contains('ey')) {
|
||||
$locale = 'de';
|
||||
Cookie::expire('lang');
|
||||
}
|
||||
App::setLocale($locale);
|
||||
if ($request->country) {
|
||||
|
||||
Reference in New Issue
Block a user