PHPackages                             mintbridge/eloquent-auditing - 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. [Database &amp; ORM](/categories/database)
4. /
5. mintbridge/eloquent-auditing

ActiveLibrary[Database &amp; ORM](/categories/database)

mintbridge/eloquent-auditing
============================

An eloquent package for recording model events to a database

v0.0.5(9y ago)26.4k↓50%MITPHPPHP &gt;=5.4.0

Since Dec 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mintbridge/eloquent-auditing)[ Packagist](https://packagist.org/packages/mintbridge/eloquent-auditing)[ RSS](/packages/mintbridge-eloquent-auditing/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (6)Used By (0)

Eloquent Auditing
=================

[](#eloquent-auditing)

This Laravel 5 package allows model events to be logged to a database. It provides a trait that can be added to any Eloquent model allowing for chosen events to be logged using a polymorphic relationship.

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

[](#installation)

This package can be installed through Composer.

```
composer require mintbridge/eloquent-auditing
```

Once installed add the service provider and facade to your app config

```
// config/app.php

'providers' => [
    '...',
    Mintbridge\EloquentAuditing\AuditServiceProvider::class,
];

'aliases' => [
    ...
    'Auditor' => Mintbridge\EloquentAuditing\AuditorFacade::class,
];
```

You'll also need to publish and run the migration in order to create the database table.

```
php artisan vendor:publish --provider="Mintbridge\EloquentAuditing\AuditServiceProvider" --tag="config"
php artisan vendor:publish --provider="Mintbridge\EloquentAuditing\AuditServiceProvider" --tag="migrations"
php artisan migrate

```

The configuration will be written to `config/auditing.php`. The options have sensible defaults but you should change the user to match the one used in your application.

Usage
-----

[](#usage)

This package will record the events from your models. To do so your model must use the `Auditable` trait and implement `AuditableInterface`.

```
use Mintbridge\EloquentAuditing\Auditable;
use Mintbridge\EloquentAuditing\AuditableInterface;

class Article extends Eloquent implements AuditableInterface {

    use Auditable;
...
```

The trait by default will use the event in `config/auditing.php` but you can overide this on a per model basis by adding a static `$auditableEvents` array of event names to the model. See  for the available events.

```
use Mintbridge\EloquentAuditing\Auditable;
use Mintbridge\EloquentAuditing\AuditableInterface;

class Article extends Eloquent implements AuditableInterface {

    use Auditable;

    public static $auditableEvents = [
        'creating',
        'created',
        'updating',
        //...
    ];
...
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~101 days

Total

5

Last Release

3411d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d692eb428aac3d994513c18ac2c3c1d5b0a3e15f1e0c56661aa14fae8b4a942b?d=identicon)[mintbridge](/maintainers/mintbridge)

---

Top Contributors

[![mintbridge](https://avatars.githubusercontent.com/u/32777?v=4)](https://github.com/mintbridge "mintbridge (1 commits)")

---

Tags

laraveleloquentAuditauditing

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mintbridge-eloquent-auditing/health.svg)

```
[![Health](https://phpackages.com/badges/mintbridge-eloquent-auditing/health.svg)](https://phpackages.com/packages/mintbridge-eloquent-auditing)
```

###  Alternatives

[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k33.0M95](/packages/owen-it-laravel-auditing)[altek/accountant

The auditing &amp; accountability package for Laravel's Eloquent ORM.

92954.3k4](/packages/altek-accountant)[betapeak/laravel-auditing-filesystem

A filesystem driver for the owen-it/laravel-auditing package. Allows storage of the audits in CSV files, across all registered Laravel disks.

166.5k](/packages/betapeak-laravel-auditing-filesystem)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
