Skip to content

Commit c810637

Browse files
authored
Update README.md
1 parent 38828d2 commit c810637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ to the update query of a **optimistically lockable model**:
129129
```php
130130
<?php
131131
$query->where('id', $this->id)
132-
->where('lock_version', $this->lock_version + 1)
132+
->where('lock_version', $this->lock_version)
133133
->update($changes);
134134
```
135135

0 commit comments

Comments
 (0)