url = $url; } /** @return mixed */ public function handle(Request $request, Closure $next) { if (config('koel.force_https')) { $this->url->forceScheme('https'); $request->setTrustedProxies([$request->getClientIp()], Request::HEADER_X_FORWARDED_ALL); } return $next($request); } }