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