I'm using laravel 5.1, I'm trying to update locale in app file like this : In Locale Middleware file :
...
public function handle($request, Closure $next)
{
if(Session::has('locale'))
{
$lang = Session::get('locale');
App::setLocale($lang);
}
return $next($request);
}
I get this error :/
FatalErrorException in ErrorStoreInterface.php line 1: Maximum function nesting level of '100' reached, aborting!
Any idea about this ??
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire