'date', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'deleted_at' => 'datetime', ]; public function podcast() { return $this->belongsTo(Podcast::class); } public function artwork() { return $this->hasOne(Artwork::class, 'id', 'artwork_id'); } public function approvedArtworks() { return $this->hasMany(Artwork::class)->whereNotNull('artworks.approved_by'); } public function artworks() { return $this->hasMany(Artwork::class); } public function artist() { return $this->hasOneThrough(Artist::class, Artwork::class); } }