*/ protected function defaultQuery(): array { return [ 'api_key' => config('koel.lastfm.key'), 'method' => 'artist.getInfo', 'artist' => $this->artist->name, 'autocorrect' => 1, 'format' => 'json', ]; } public function createDtoFromResponse(Response $response): ?ArtistInformation { $artist = object_get($response->object(), 'artist'); if (!$artist) { return null; } return ArtistInformation::make( url: object_get($artist, 'url'), bio: [ 'summary' => self::formatLastFmText(object_get($artist, 'bio.summary')), 'full' => self::formatLastFmText(object_get($artist, 'bio.content')), ], ); } }