If you come across any edge cases that this guide does not cover, please send in a PR!
-
Replaced
StatsQuery::for($model)->getStatistic()
withStatsQuery::for($model)->getAttributes()
-
Removed
BaseStats->createEvent()
-
Changed visibility of
StatsQuery::for($model)->generatePeriods()
frompublic
toprotected
-
Changed visibility of
StatsQuery::getPeriodTimestampFormat()
frompublic
toprotected
These methods are only used internally by the package. You can no longer use these methods in your own code.
- Replace
StatsQuery::for(OrderStats::class)
withOrderStats::query()
- Replace
StatsEvent::TYPE_SET
withDataPoint::TYPE_SET
- Replace
StatsEvent::TYPE_CHANGE
withDataPoint::TYPE_CHANGE