sfolador/laravel-locked
sfolador/laravel-locked adds simple record locking to your Laravel Eloquent models, helping prevent conflicting concurrent edits. Lock records before modifying them so simultaneous requests can't overwrite each other's changes.
SELECT ... FOR UPDATE, unique constraints, or transactional invariants without verification.Look elsewhere or build in-house when:
For executives: This is a low-cost experiment to reduce edit conflicts and add “record is being worked on” workflow states. It is not strategic infrastructure and should be time-boxed. Approve a small spike only if locking is peripheral; otherwise fund a first-party solution because the package is small, low-adoption, and not recently released.
For engineering: MIT-licensed Laravel package that adds lock state to Eloquent models. It may be useful as an advisory lock for low-risk back-office flows, but audit the code and verify Laravel compatibility before adoption. Pair it with database constraints/transactions for correctness, define stale-lock and override policies, and be prepared to fork. Recommendation: spike behind an interface, keep a native Laravel fallback, and do not use it as the sole concurrency control for money, inventory, or compliance-sensitive records.
How can I help you explore Laravel packages today?