*/ protected $guarded = []; /** * @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Genre, $this> */ public function genre(): BelongsTo { return $this->belongsTo(Genre::class, 'genres_id'); } public function searchableAs(): string { return 'ix_musicinfo_artist_title_ft'; } /** * @return array */ public function toSearchableArray(): array { return [ 'artist' => $this->artist, 'title' => $this->title, ]; } }