Trail

Laravel’s missingaudit trail.

Sometimes you just want to know who did what and when.

A project from
Obelaw
composer require obelaw/trail

MIT Licensed · Free forever · Obelaw Packages

Overview

Trail lets you keep track of who did what and when in your application. It automatically records model events and allows for custom logging of critical user actions, providing a complete audit history.

Key features

  • Automatic Eloquent model event logging (created, updated, deleted)
  • Tracks changed attributes (old vs new values)
  • User attribution for all actions
  • IP address and User Agent logging

Basic usage

use Obelaw\Trail\Traits\LogsActivity;

class Post extends Model
{
    use LogsActivity;

    // Customize what to log
    protected static $logAttributes = ['title', 'content'];
}
Awesome contributors

Our Premium Sponsors

Obelaw is proudly open-source. Continued development, bug fixes, and community support are made possible by the generosity of our sponsors.

Sponsor Obelaw