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+
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire