*/ use HasFactory; /** * Get the row that owns the value. * * @return BelongsTo */ public function medicationExpenseRow(): BelongsTo { return $this->belongsTo(MedicationExpenseRow::class); } /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'amount' => 'decimal:2', 'funding_source' => FundingSource::class, 'expense_category' => ExpenseCategory::class, ]; } }