user() && $request->user()->lang) { App::setLocale($request->user()->lang->getLocale()); } return $next($request); } }