kekalainen/eloquent-concurrency
Adds optimistic concurrency control to Laravel Eloquent models, checking a version column on save so conflicting updates throw instead of silently overwriting each other. Prevents lost updates in multi-user apps without database locking.
Eloquent Concurrency adds optimistic concurrency control to Laravel's Eloquent models. It guards against lost updates by comparing a version (or timestamp) column before saving, so concurrent edits are detected instead of silently overwriting each other. When a conflict occurs, the package throws a dedicated exception, letting you retry, merge, or notify the user.
How can I help you explore Laravel packages today?