Skip to content

Commit 669bb1c

Browse files
authored
Fix call to Model::increment() (laravel#9699)
1 parent ec9ff51 commit 669bb1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eloquent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ If you need to customize the names of the columns used to store the timestamps,
313313

314314
If you would like to perform model operations without the model having its `updated_at` timestamp modified, you may operate on the model within a closure given to the `withoutTimestamps` method:
315315

316-
Model::withoutTimestamps(fn () => $post->increment(['reads']));
316+
Model::withoutTimestamps(fn () => $post->increment('reads'));
317317

318318
<a name="database-connections"></a>
319319
### Database Connections

0 commit comments

Comments
 (0)