SalaryAdjustmentType::class, 'amount' => 'integer', ]; } protected function amountFormatted(): Attribute { return Attribute::make( get: fn () => $this->amount ? 'Rp '.number_format($this->amount, 0, ',', '.') : null, ); } public function payroll(): BelongsTo { return $this->belongsTo(Payroll::class); } }