From 0e8d2a65a940ff67762d420914d00770f2b790f3 Mon Sep 17 00:00:00 2001 From: keoy7am Date: Tue, 27 Apr 2021 23:45:41 +0800 Subject: [PATCH] fix laravel-admin-extensions/multi-language/ #9 --- src/Middlewares/MultiLanguageMiddleware.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Middlewares/MultiLanguageMiddleware.php b/src/Middlewares/MultiLanguageMiddleware.php index 6a6fed7..b5294f3 100644 --- a/src/Middlewares/MultiLanguageMiddleware.php +++ b/src/Middlewares/MultiLanguageMiddleware.php @@ -11,6 +11,8 @@ class MultiLanguageMiddleware { public function handle($request, Closure $next) { + config(['admin.auth.excepts' => ['auth/login','locale']]); + $languages = MultiLanguage::config('languages'); $cookie_name = MultiLanguage::config('cookie-name', 'locale');