'integer', ]; } public function balanceFormatted(): Attribute { return Attribute::make( get: fn () => 'Rp '.number_format($this->balance, 0, ',', '.'), ); } public function transactions(): HasMany { return $this->hasMany(CashTransaction::class); } }