*/ protected $fillable = [ 'name', 'email', 'password', ]; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ 'password', 'remember_token', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'email_verified_at' => 'datetime', 'created_at' => 'datetime', 'updated_at' => 'datetime', ]; /** * The attributes that should be appended. * * @var array */ protected $appends = [ ]; public function artists() { return $this->hasMany(Artist::class); } public function artworks() { return $this->hasManyThrough(Artwork::class, Artist::class); } public function episodes() { return $this->hasManyThrough(Episode::class, Artwork::class); } public function wallets() { return $this->hasManyThrough(Wallet::class, Artist::class); } }