sbarre/eloquent-versioned
Keep a full revision history for your Eloquent models: automatically store versions on save, browse past changes, and restore earlier states. Handy for audit trails, undo, and content workflows in Laravel apps.
getNextModel() / getPreviousModel()), which removes a common "we'll build our own audit table later" backlog item. Compare the cost of a sprint of custom work against adopting a pre-1.0 dependency.model_id determination reduces race conditions when multiple users write to the same record. This affects any customer-facing claim about multi-editor safety, and it's the kind of defect that shows up as corrupted or orphaned version rows in production, not in QA.Consider it when:
Look elsewhere when:
Version-risk caveat: at 0.1.2 the package is pre-1.0. Assume the public API can change without a major-version bump; pin exact versions and wrap calls behind your own interface.
For executives: Version history is a recurring customer ask and a recurring engineering distraction. This package gives us revision tracking on our existing models plus ready-made "next/previous version" navigation, so we can ship a history-and-restore feature at a fraction of custom-build cost. The 0.1.2 release also fixes a concurrency bug in how version rows are attributed, which reduces the risk of corrupted history under simultaneous edits.
For engineering: 0.1.2 adds Laravel 5.2 support, adds getNextModel() and getPreviousModel() for walking a model's version chain, and tightens model_id determination to avoid race conditions. Small footprint, plain Eloquent. Two caveats to plan around: it's pre-1.0, so pin the version and isolate the API behind our own adapter; and its framework support skews legacy, so confirm it runs cleanly on our stack before we commit.
Recommendation: Worth a short spike, not a platform commitment. Validate the concurrency fix under load and confirm framework compatibility, then decide whether the traversal methods save us more than the maintenance overhead of an early-stage dependency.
Note: this assessment is derived from the 0.1.2 release notes; no prior evaluation or benchmark data exists. Treat the build-vs-buy comparison and maintenance-risk judgment as provisional pending a hands-on spike.
How can I help you explore Laravel packages today?