Skip to content

Commit 6f86901

Browse files
small readme update
1 parent 36bf9a2 commit 6f86901

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,15 @@ All basic insert, update, delete and select methods should be implemented.
188188

189189
Perform increments (default 1) on specified attributes.
190190
Attention: without a where-clause, every object will be modified.
191-
The number of updated objects is returned.
192191

193192
```php
194193
User::where('name', 'John Doe')->increment('age');
195194
User::where('name', 'Bart De Wever')->decrement('weight', 50);
195+
```
196196

197+
The number of updated objects is returned.
198+
199+
```php
197200
$count = User->increment('age');
198201
echo $count;
199202
```

0 commit comments

Comments
 (0)