Files
2025-11-26 15:12:40 +01:00

22 lines
739 B
Markdown

https://github.com/avocet-shores/laravel-rewind
Versioning package for Laravel Eloquent models. Automatically tracks model changes and allows jumping backwards or forwards through version history.
## Features
- Rewind to previous versions or fast-forward to newer ones
- Jump directly to specific version numbers
- Uses partial diffs + full snapshots for storage efficiency
- Thread-safe with cache locking
- Exclude sensitive attributes (passwords, tokens) from versioning
- Clone models at specific historical points
- Non-destructive linear history
## Usage
Add the `Rewindable` trait to your Eloquent model.
```bash
composer require avocet-shores/laravel-rewind
```
#laravel #eloquent #versioning #audit #history #changelog #undo