Releases: spatie/laravel-stats
Releases · spatie/laravel-stats
2.3.0
2.2.0
What's Changed
- Update README.md by @gauravmak in #33
- Fix method name in docs by @ManojKiranA in #35
- Completing SQLite Support by @abishekrsrikaanth in #37
New Contributors
- @gauravmak made their first contribution in #33
- @ManojKiranA made their first contribution in #35
- @abishekrsrikaanth made their first contribution in #37
Full Changelog: 2.1.1...2.2.0
2.1.1
- Support Laravel 10
- Support PHP 8.2
2.1.0
What's Changed
- Add Group By Minute Period by @DexterHarrison in #31
New Contributors
- @DexterHarrison made their first contribution in #31
Full Changelog: 2.0.4...2.1.0
2.0.4
What's Changed
- Performance Improvement by removing get queries by @noamanahmed-omniful in #28
New Contributors
- @noamanahmed-omniful made their first contribution in #28
Full Changelog: 2.0.3...2.0.4
2.0.3
What's Changed
- fix typo in README.md. by @fsamapoor in #23
- Support PostgreSQL by @skollro in #27
New Contributors
- @fsamapoor made their first contribution in #23
- @skollro made their first contribution in #27
Full Changelog: 2.0.2...2.0.3
2.0.2
What's Changed
- Add table prefix to StatsQuery by @digitalkreativ in #22
New Contributors
- @digitalkreativ made their first contribution in #22
Full Changelog: 2.0.1...2.0.2
2.0.1
What's Changed
- Support SQLite by @bumbummen99 in #19
New Contributors
- @bumbummen99 made their first contribution in #19
Full Changelog: 2.0.0...2.0.1
2.0.0
What's Changed
Add support for relationships by @christoph-kluge in #17
See upgrading.md for an upgrading guide.
Added
- Added
StatsWriter
with classname support (StatsWriter::for(MyModel::class)
) - Added
StatsWriter
with eloquent-model support (StatsWriter::for($eloquent)
) - Added
StatsWriter
with "has-many"-relationship support (StatsWriter::for($model->relationship())
) - other relationships are untested yet - Added
StatsWriter
with custom-attribute support (StatsWriter::for(MyModel::class, ['custom_column' => 'orders])
) - Extended
StatsQuery
with relationship-support (StatsQuery::for($model->relationship())
) - Extended
StatsQuery
with additional attributes (StatsQuery::for(StatsEvent::class, ['name' => 'OrderStats'])
) - Extended
BaseStats
with direct writer access (OrderStats::writer()
as addition toOrderStats::query()
)
Breaking changes
- Changed visibility of
StatsQuery::for($model)->generatePeriods()
frompublic
toprotected
- Changed visibility of
StatsQuery::getPeriodTimestampFormat()
frompublic
toprotected
- Replaced
StatsQuery::for($model)->getStatistic()
withStatsQuery::for($model)->getAttributes()
- Removed
BaseStats->createEvent()
Migrations
- Replace
StatsQuery::for(OrderStats::class)
withOrderStats::query()
- Replace
StatsEvent::TYPE_SET
withDataPoint::TYPE_SET
- Replace
StatsEvent::TYPE_CHANGE
withDataPoint::TYPE_CHANGE
New Contributors
- @christoph-kluge made their first contribution in #17
Full Changelog: 1.0.1...2.0.0
1.0.1
- Add support for Laravel 9