• Ask a Question
  • Create a Poll
150
    Ask a Question
    Cancel
    150
    More answer You can create 5 answer(s).
      Ask a Poll
      Cancel

      Mcamara\LaravelLocalization\Exceptions\SupportedLocalesNotDefined error given after install

      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.

      1 Answers
      php artisan config:cache 

      is fixed all.

      Answered by Clevelandpeterlindsey on July 16, 2020..