Eloquent Model History + Laravel Job History Documentation

History is a Laravel package to manage the history of:

  1. Changes, diff and comments of Eloquent models;
  2. 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:

Job Tracker alternatives:

Changelog

See the Changelog for more information about what has changed recently.


Next: Installation »