visualbuilder/versionable
Laravel model versioning with polymorphic user support. Track and store a history of changes across multiple user types/guards, keep a set number of versions, whitelist/blacklist attributes, record only diffs, and easily revert models to any saved version.
Admin, Client, Vendor) across different authentication guards, aligning with SaaS scalability needs.Admin, Client, Vendor).auth()->user()).timestamps or spatie/laravel-activitylog).spatie/laravel-activitylog with extensions).For Executives: "This package automates version tracking for critical data—like customer records, product specs, or content—with full audit trails and user attribution. It’s a zero-config, drop-in solution that cuts development time by 80% compared to building versioning from scratch. For no cost (MIT license), we gain compliance safeguards, recovery options, and collaboration features—key for scaling our [CMS/SaaS/product]. For example, if a client accidentally deletes a contract, we can instantly restore it to a previous version. It also supports our multi-role auth system (e.g., admins vs. clients), ensuring we meet regulatory requirements without extra engineering effort."
For Engineering:
*"This is a lightweight fork of overtrue/laravel-versionable with polymorphic user support, solving our need to track version authors across Admin, Client, and Vendor models. Key benefits:
auth()->user() via morphs('user').removeAllVersions() to manage storage efficiently.DIFF (only changed attributes) or SNAPSHOT (full attribute copies).
Tradeoffs:How can I help you explore Laravel packages today?