belongsTo(Artist::class); } public function artworks() { return $this->belongsToMany(Artwork::class); } public function postcast() { return $this->belongsTo(Podcast::class); } public function episodes() { return $this->hasManyThrough(Episode::class, Artwork::class); } }