PHPackages                             jeevanjoshi/laravel-audit-trail - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jeevanjoshi/laravel-audit-trail

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jeevanjoshi/laravel-audit-trail
===============================

Automatic model change tracking with revert capability for Laravel

v1.0.2(2mo ago)06MITPHPPHP ^8.1

Since May 9Pushed 2mo agoCompare

[ Source](https://github.com/thecrazydiamond1/laravel-audit-trail)[ Packagist](https://packagist.org/packages/jeevanjoshi/laravel-audit-trail)[ RSS](/packages/jeevanjoshi-laravel-audit-trail/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

Laravel Audit Trail
===================

[](#laravel-audit-trail)

A powerful, zero-configuration audit trail package for Laravel. Automatically tracks every create, update, and delete on your Eloquent models with a beautiful built-in dashboard.

Features
--------

[](#features)

- Automatic model change tracking — just add one trait
- Records old and new values for every change
- Captures who made the change, from which IP, and when
- Beautiful built-in dashboard at `/audit-trail`
- One-click revert to any previous state
- Expandable diff view for changes
- Filterable by model, action, user, date range
- Fully configurable via config file
- Excludes sensitive fields like passwords automatically
- Works with any model — User, Invoice, Order, anything

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Laravel 9 to 12

Installation
------------

[](#installation)

Install via Composer:

```
composer require jeevanjoshi/laravel-audit-trail
```

The package will be auto-discovered by Laravel. No manual configuration needed.

Setup
-----

[](#setup)

### 1. Publish and run the migration

[](#1-publish-and-run-the-migration)

```
php artisan vendor:publish --tag=audit-trail-migrations
php artisan migrate
```

This creates the `audit_trails` table in your database.

### 2. Add the trait to any model you want to track

[](#2-add-the-trait-to-any-model-you-want-to-track)

```
