gurgentil / laravel-eloquent-sequencer

A package that allows you to create and manage sequences on Eloquent models.
MIT License
156 stars 13 forks source link

fix: prevent endless loop on incrementOrDecrement in laravel 8 #20

Closed riesjart closed 3 years ago

riesjart commented 3 years ago

In Laravel 8, Model::incrementOrDecrement() now dispatches the updating Eloquent event. This currently causes an endless loop when updating the affected sequenceables.

awebartisan commented 3 years ago

Facing an issue while updating the sequenced column in Laravel 8. And this PR solves it 🙌🏼 Hoping it will be merged soon 🤞