Skip to content

Commit 12ef0ba

Browse files
committed
fix README.md
1 parent f28b689 commit 12ef0ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ Once installed you can do stuff like this:
2828
Counters::increment('number_of_visitors');
2929

3030
// increment/decrement model objects counters
31-
$post->increment('number_of_views');
32-
$feature->decrement('number_of_bugs');
33-
$user->decrement('balance', 2); // decrement the balance of the user by 2
31+
$post->incrementCounter('number_of_views');
32+
$feature->decrementCounter('number_of_bugs');
33+
$user->decrementCounter('balance', 2); // decrement the balance of the user by 2
3434
```
3535
There are many other methods that are mentioned below.
3636

0 commit comments

Comments
 (0)