track = $track; $this->artUrl = null; if (isLegacy()) { $path = parse_url($track["image"], PHP_URL_PATH); if ($track["image"] !== "") { $this->artUrl = "//" . request()->getHttpHost() . "/proxy/lastfm/" . basename($path); } } else { $this->artUrl = $track["image"]; } } /** * Get the view / contents that represent the component. */ public function render(): View|Closure|string { return view('components.lastfm-current'); } }