dimanche 28 août 2016

Laravel localization problems 5.2+

This is my middleware.

class BeforeMiddleware{

public function handle($request, Closure $next)
{
    // Perform action

    App:setLocale(LC_ALL,Session::get('locale'));

    return $next($request);
}

If i don't place LC_ALL as first parameter in setLocale i get this error.

"setlocale() expects at least 2 parameters, 1 given"

If i put LC_ALL as the first parameter localization doesn't change. Version of laravel is 5.2+



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2bvGdXY
via IFTTT

Aucun commentaire:

Enregistrer un commentaire