getAnimeGenres(new AnimeGenresRequest()); return json_decode( app('SerializerV4') ->serialize($data, 'json'), true ); } public function toSearchableArray(): array { return [ 'id' => (string) $this->mal_id, 'mal_id' => (int) $this->mal_id, 'name' => $this->name, 'count' => $this->count ]; } public function typesenseQueryBy(): array { return [ 'name' ]; } public function getTitleAttributeName(): string { return 'name'; } }