*/ protected $fillable = [ 'email', 'artist_id', ]; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ 'invitation_token', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'registered_at' => 'datetime', ]; public function artist(): BelongsTo { return $this->belongsTo(Artist::class, 'artist_id', 'user_id'); } }