How to configure mcamara/laravel-localization (Laravel5.1)?

in app.php added:
'locale' => array('EN', 'en'),
in Application Service Providers:
in the end in aliases:
'LaravelLocalization' => Mcamara\LaravelLocalization\Facades\LaravelLocalization::class,

in routes.php :
 'prefix' => LaravelLocalization::setLocale(),
 function () {
 Route::get('/', 'PageController@getIndex');

Move on to the site and I get an error :
ErrorException in LaravelLocalization.php line 117:
Illegal offset type in isset or empty

What did I do wrong ?
July 8th 19 at 16:17
1 answer
July 8th 19 at 16:19
Where in the instructions it says to do 'locale' => array('EN', 'en')?

Find more questions by tags Laravel