Add localization middleware

This commit is contained in:
Miguel Nogueira 2020-09-02 18:39:45 +01:00
parent a10f3f9c96
commit 81c0b65404
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ use Mcamara\LaravelLocalization\Facades\LaravelLocalization;
| contains the "web" middleware group. Now create something great! | 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 (){ Route::group(['prefix' => 'auth', 'middleware' => ['usernameUUID']], function (){