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.
getPreviousModel() and getNextModel() to build previous/next navigation on a version detail page.model_id fix reduces race risk, but transactions and sensible DB constraints still belong in application code.created_at plus id, then use getPreviousModel() / getNextModel() for detail-page navigation. These methods fit naturally into “older/newer version” links and audit/history screens.null.0.1.x package. Pin the version in composer.json and review the README/changelog before upgrading; APIs around version traversal and model association may still evolve.getPreviousModel() and getNextModel() will likely return null at the boundaries of a version list. Handle that explicitly in controllers and views.model_id determination helps with race conditions, but concurrent writes can still create ordering ambiguity. Use transactions, stable ordering, and database constraints where correctness matters.created_at; timestamps can collide. Use a deterministic secondary sort such as id.How can I help you explore Laravel packages today?