Skip to content

Commit

Permalink
Fix method name in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ManojKiranA authored Feb 20, 2024
1 parent d03ab1f commit f81ac20
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 @@ -183,8 +183,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 f81ac20

Please sign in to comment.