Cast fields to string and drop unused table.

This commit is contained in:
James Cole
2024-11-15 19:13:37 +01:00
parent ec89a2f956
commit 60f6a91fe4
12 changed files with 17 additions and 19 deletions

View File

@@ -49,6 +49,10 @@ class AutoBudget extends Model
public const int AUTO_BUDGET_ROLLOVER = 2;
protected $fillable = ['budget_id', 'amount', 'period'];
protected $casts = [
'amount' => 'string',
];
public function budget(): BelongsTo
{
return $this->belongsTo(Budget::class);