I just install 'mcamara/laravel-localization' after install follow to steps and add
Route::group(
[
'prefix' => LaravelLocalization::setLocale(),
'middleware' => [ 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath' ]
], function(){ //...
});
to my route. After that, I encounter
Mcamara\LaravelLocalization\Exceptions\SupportedLocalesNotDefined
Supported locales must be defined.
I guess it is not read to the config file for Supported locales array. So don't know how to fix it. I am using laravel 7.19.1. I need help.
is fixed all.