Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Eloquent Concurrency

Eloquent Concurrency Laravel Package

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.

View on GitHub
Deep Wiki
Context7

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.

  • Version-based locking via a configurable version column on your models
  • Conflict detection with clear, catchable exceptions on stale writes
  • Zero-config trait — drop it into any Eloquent model to get started
  • Framework-native design that integrates cleanly with Eloquent events and transactions
  • Lightweight — no extra database tables or infrastructure required
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel