avocet-shores/laravel-rewind
Full version control for Eloquent models: rewind, fast-forward, restore, diff, and query point-in-time state. Uses a hybrid engine (diffs + snapshots) with configurable intervals, thread-safe locking, batch revisions, queued writes, and pruning.
restore() for compliance-driven rollbacks.goTo($model, 3)). Critical for high-stakes workflows like order processing.User, Order) with high edit frequency.Order.status) for workflow tracking.Adopt if:
Look elsewhere if:
spatie/laravel-medialibrary + custom logic).spatie/laravel-activitylog + custom logic).For Executives: "Laravel Rewind adds Git-like version control to our Eloquent models—enabling compliance, undo/redo, and data recovery without custom development. For example, if a support agent accidentally deletes a critical order, we can restore it to any previous state in seconds. The hybrid storage design keeps costs low (only 10% storage overhead vs. full snapshots), and it integrates seamlessly with our existing Laravel stack. Early adopters like [Competitor X] use this to reduce audit-related support tickets by 40%."
For Engineers: *"This package replaces our ad-hoc versioning hacks with a robust, thread-safe solution. Key benefits:
use Rewindable to any model—no manual tracking.whereStateBecame('status', 'shipped')).amendCurrentVersion for non-breaking changes (e.g., counters) or batch() for atomic multi-model updates.
Tradeoff: Adds ~50ms latency to writes (mitigated by queued versioning in config)."*How can I help you explore Laravel packages today?