changing language with mcamara/laravel-localization
I'm adding language support to the website. And i remove language prefix for default locale.
Now i added a selectbox to select preferred language. But LaravelLocalization::setLocale('lang') not working?
For example in the route file;
Route::('/test', function(){
return LaravelLocalization::setLocale('en');
});
it prints 'en' to the screen but it doesnt set in session.
So if i have a url with querystring how can i change language?