Add statistics to budget, although unused atm.

This commit is contained in:
James Cole
2025-10-03 06:41:42 +02:00
parent 7f827fb277
commit 957bc00847
2 changed files with 6 additions and 1 deletions

View File

@@ -128,4 +128,9 @@ class Budget extends Model
get: static fn ($value) => (int)$value, get: static fn ($value) => (int)$value,
); );
} }
public function primaryPeriodStatistics(): MorphMany
{
return $this->morphMany(PeriodStatistic::class, 'primary_statable');
}
} }

View File

@@ -81,7 +81,7 @@ class Category extends Model
} }
/** /**
* Get all of the category's notes. * Get all the category's notes.
*/ */
public function notes(): MorphMany public function notes(): MorphMany
{ {