reshadman/laravel-optimistic-locking
Add optimistic locking to your Laravel Eloquent models to prevent lost updates. It tracks version numbers on save, throws exceptions on conflicts, and works with your existing models—no schema changes beyond a version column.
Laravel Optimistic Locking adds optimistic concurrency control to Eloquent models, preventing lost updates when multiple users edit the same record. Each model uses a version column; updates succeed only when the version matches, otherwise a stale-model exception is thrown.
How can I help you explore Laravel packages today?