Enable period statistics for category.

This commit is contained in:
James Cole
2025-09-27 05:31:26 +02:00
parent d61f87f649
commit c54da62005
4 changed files with 158 additions and 17 deletions

View File

@@ -109,4 +109,9 @@ class Category extends Model
'user_group_id' => 'integer',
];
}
public function primaryPeriodStatistics(): MorphMany
{
return $this->morphMany(PeriodStatistic::class, 'primary_statable');
}
}