track = $track; if (isLegacy()) { $path = parse_url($track["image"], PHP_URL_PATH); if ($track["image"] === "") { $this->artUrl = null; return; } $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'); } }