FinanceType::class, 'category' => FinanceCategory::class, 'date' => 'date', 'amount' => 'integer', ]; } public function team(): BelongsTo { return $this->belongsTo(Team::class); } public function creator(): BelongsTo { return $this->belongsTo(User::class, 'created_by'); } public function getFormattedAmountAttribute(): string { return number_format($this->amount / 100, 2, ',', '.') . ' €'; } }