From f81ac20fb54ee44a793b6b7b7bad5dad0a205cc6 Mon Sep 17 00:00:00 2001 From: Manoj Kiran <30294553+ManojKiranA@users.noreply.github.com> Date: Tue, 20 Feb 2024 11:11:53 +0530 Subject: [PATCH] Fix method name in docs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fa0cc96..e41c733 100644 --- a/README.md +++ b/README.md @@ -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))