Aggregate Values
Simple value metrics (e.g. count or average for a month)
Beacon Metrics was created to provide a simple way to calculate metrics and trends for Beacon and other Laravel applications.
It provides a fluent API that enables you to easily and quickly calculate metrics and trends for your application.
Metrics::query(MyModel::query())
->count()
->byDay()
->between(now()->subMonth(), now())
->trends();