Eloquent Model History + Laravel Job History Documentation
History is a Laravel package to manage the history of:
- Changes, diff and comments of Eloquent models;
- Track and log the execution history of Laravel background jobs;
This library DOES NOT automatically hook into the model's lifecycle events, but allows the developer to manually register history events at arbitrary places in the application code.
Features
Eloquent Model History
- Record model creation, update, delete, and retrieval
- Add optional comments to events
- Add comment-only history events
- Automatically record the IP, URL, user agent and user ids when in an HTTP context
- Automatically detect the CLI, the command name when in an artisan command
- Automatically detect the queue and the job when running in a queued job
- Define included/excluded fields on a per-model basis
- Has a diff of the changed fields (old/new values)
Job Tracking
- Track the execution status of Laravel Jobs
- Set and read the completion % of a job execution
- Write logs for job executions
- Detect the user that has executed the job
Alternatives
If you need a strict audit tool for Laravel, that can automatically record changes, wherever they happen, then check out the Laravel Auditing Package
Other alternatives:
- https://github.com/rudashi/laravel-history/
- https://github.com/seancheung/history
- https://github.com/spatie/laravel-activitylog
- https://github.com/VentureCraft/revisionable
Job Tracker alternatives:
- https://tobytwigger.github.io/laravel-job-status/
- https://github.com/mateusjunges/trackable-jobs-for-laravel
- https://github.com/imTigger/laravel-job-status
Changelog
See the Changelog for more information about what has changed recently.
Next: Installation »