Skip to content

Commit

Permalink
Merge pull request #35 from ManojKiranA/patch-1
Browse files Browse the repository at this point in the history
Fix method name in docs
  • Loading branch information
freekmurze authored Feb 20, 2024
2 parents 7ad239d + f81ac20 commit b1849d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ This will return an array containing arrayable `Spatie\Stats\DataPoint` objects.

```php
StatsWriter::for(MyCustomModel::class)->set(123)
StatsWriter::for(MyCustomModel::class, ['custom_column' => '123'])->increment(1)
StatsWriter::for(MyCustomModel::class, ['another_column' => '234'])->decrement(1, now()->subDay())
StatsWriter::for(MyCustomModel::class, ['custom_column' => '123'])->increase(1)
StatsWriter::for(MyCustomModel::class, ['another_column' => '234'])->decrease(1, now()->subDay())

$stats = StatsQuery::for(MyCustomModel::class)
->start(now()->subMonths(2))
Expand Down

0 comments on commit b1849d3

Please sign in to comment.