vendredi 6 janvier 2017

How can I change the language of errors in laravel 5.1 dynamically

I have been using the helper

app()->setLocale(session('lang'));

However, I can get to change the languages of views but the languages of errors still continues reading of

\config\app.php locale => ‘es’

That means that always show the same language.

How can i change it also dynamically?

enter image description here



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire