We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f28b689 commit 12ef0baCopy full SHA for 12ef0ba
README.md
@@ -28,9 +28,9 @@ Once installed you can do stuff like this:
28
Counters::increment('number_of_visitors');
29
30
// 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
+$post->incrementCounter('number_of_views');
+$feature->decrementCounter('number_of_bugs');
+$user->decrementCounter('balance', 2); // decrement the balance of the user by 2
34
```
35
There are many other methods that are mentioned below.
36
0 commit comments