All notable changes to laravel-stats
will be documented in this file
- l11 support by @finndev in #38
- @finndev made their first contribution in #38
Full Changelog: https://github.com/spatie/laravel-stats/compare/2.2.0...2.3.0
- Update README.md by @gauravmak in #33
- Fix method name in docs by @ManojKiranA in #35
- Completing SQLite Support by @abishekrsrikaanth in #37
- @gauravmak made their first contribution in #33
- @ManojKiranA made their first contribution in #35
- @abishekrsrikaanth made their first contribution in #37
Full Changelog: https://github.com/spatie/laravel-stats/compare/2.1.1...2.2.0
- Support Laravel 10
- Support PHP 8.2
- Add Group By Minute Period by @DexterHarrison in #31
- @DexterHarrison made their first contribution in #31
Full Changelog: https://github.com/spatie/laravel-stats/compare/2.0.4...2.1.0
- Performance Improvement by removing get queries by @noamanahmed-omniful in #28
- @noamanahmed-omniful made their first contribution in #28
Full Changelog: https://github.com/spatie/laravel-stats/compare/2.0.3...2.0.4
Full Changelog: https://github.com/spatie/laravel-stats/compare/2.0.2...2.0.3
- Add table prefix to StatsQuery by @digitalkreativ in #22
- @digitalkreativ made their first contribution in #22
Full Changelog: https://github.com/spatie/laravel-stats/compare/2.0.1...2.0.2
- Support SQLite by @bumbummen99 in #19
- @bumbummen99 made their first contribution in #19
Full Changelog: https://github.com/spatie/laravel-stats/compare/2.0.0...2.0.1
Add support for relationships by @christoph-kluge in #17
See upgrading.md for an upgrading guide.
- 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()
)
- 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()
- Replace
StatsQuery::for(OrderStats::class)
withOrderStats::query()
- Replace
StatsEvent::TYPE_SET
withDataPoint::TYPE_SET
- Replace
StatsEvent::TYPE_CHANGE
withDataPoint::TYPE_CHANGE
- @christoph-kluge made their first contribution in #17
Full Changelog: https://github.com/spatie/laravel-stats/compare/1.0.1...2.0.0
- 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()
)
- 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()
- Replace
StatsQuery::for(OrderStats::class)
withOrderStats::query()
- Replace
StatsEvent::TYPE_SET
withDataPoint::TYPE_SET
- Replace
StatsEvent::TYPE_CHANGE
withDataPoint::TYPE_CHANGE
- Add support for Laravel 9
- initial release