From 81c0b65404faa79cfe5448d15778e450aaacdaad Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Wed, 2 Sep 2020 18:39:45 +0100 Subject: [PATCH] Add localization middleware --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 82704d7..d5515b1 100644 --- a/routes/web.php +++ b/routes/web.php @@ -13,7 +13,7 @@ use Mcamara\LaravelLocalization\Facades\LaravelLocalization; | contains the "web" middleware group. Now create something great! | */ -Route::group(['prefix' => LaravelLocalization::setLocale()], function (){ +Route::group(['prefix' => LaravelLocalization::setLocale(), 'middleware' => [ 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath' ]], function (){ Route::group(['prefix' => 'auth', 'middleware' => ['usernameUUID']], function (){