Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xalaida committed Sep 10, 2023
1 parent 4998acb commit 63b889f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ public function groupPositionBy(): array

### Position lock

By default, when the position or group of a model is changed, the `PositionObserver` syncs positions of other models in the sequence accordingly using extra database queries.
If you want to disable this for some reason, you can disable the `PositionObserver` for a specific model like so:
By default, when you change the position or group of a model, the `PositionObserver` automatically updates the positions of other models in the sequence by performing additional database queries. If you need to disable this behavior for any reason, you can do it like so:

```php
use Nevadskiy\Position\PositionObserver;
Expand Down

0 comments on commit 63b889f

Please sign in to comment.