diff --git a/app/Http/Middleware/LanguageMiddleware.php b/app/Http/Middleware/LanguageMiddleware.php index 81b9a26c..44553ebe 100644 --- a/app/Http/Middleware/LanguageMiddleware.php +++ b/app/Http/Middleware/LanguageMiddleware.php @@ -41,14 +41,15 @@ class LanguageMiddleware */ public function handle($request, Closure $next) { - if (Session::has('applocale')) { - App::setLocale(Session::get('applocale')); - } elseif (Auth::check() && isset(Auth::user()->language)) { - Session::put('applocale', Auth::user()->language); - App::setLocale(Auth::user()->language); - } else { - App::setLocale(Settings::get('default_language', 'en')); - } + // if (Session::has('applocale')) { + // App::setLocale(Session::get('applocale')); + // } elseif (Auth::check() && isset(Auth::user()->language)) { + // Session::put('applocale', Auth::user()->language); + // App::setLocale(Auth::user()->language); + // } else { + // App::setLocale(Settings::get('default_language', 'en')); + // } + App::setLocale('en'); return $next($request); }