'datetime', 'updated_at' => 'datetime', ]; public function walletType() { return $this->hasOne(WalletType::class); } public function user() { return $this->hasOneThrough(User::class, Artist::class); } public function artist() { return $this->belongsTo(Artist::class); } }