Skip to content

Releases: spatie/laravel-stats

2.3.0

12 Mar 19:49
c996bf5
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.2.0...2.3.0

2.2.0

29 Feb 08:23
7930ce1
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.1.1...2.2.0

2.1.1

10 Feb 15:33
539df47
Compare
Choose a tag to compare
  • Support Laravel 10
  • Support PHP 8.2

2.1.0

09 Dec 21:14
2c2dfcc
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.0.4...2.1.0

2.0.4

31 Aug 14:04
b2804b4
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.0.3...2.0.4

2.0.3

29 Jul 14:41
390bcd5
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.0.2...2.0.3

2.0.2

01 Jun 07:11
39b9dbc
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.0.1...2.0.2

2.0.1

06 Apr 08:41
9bca691
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.0.0...2.0.1

2.0.0

04 Mar 11:56
Compare
Choose a tag to compare

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 to OrderStats::query())

Breaking changes

  • Changed visibility of StatsQuery::for($model)->generatePeriods() from public to protected
  • Changed visibility of StatsQuery::getPeriodTimestampFormat() from public to protected
  • Replaced StatsQuery::for($model)->getStatistic() with StatsQuery::for($model)->getAttributes()
  • Removed BaseStats->createEvent()

Migrations

  • Replace StatsQuery::for(OrderStats::class) with OrderStats::query()
  • Replace StatsEvent::TYPE_SET with DataPoint::TYPE_SET
  • Replace StatsEvent::TYPE_CHANGE with DataPoint::TYPE_CHANGE

New Contributors

Full Changelog: 1.0.1...2.0.0

1.0.1

02 Feb 08:38
f01eafb
Compare
Choose a tag to compare
  • Add support for Laravel 9