PHPackages                             govelid/laravel-multi-auditable - 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. govelid/laravel-multi-auditable

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

govelid/laravel-multi-auditable
===============================

A Laravel package to create flexible auditable migrations and traits

1.1.5(1y ago)020MITPHPPHP &gt;=7.4

Since Oct 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rakaarifbudiman/laravel-multi-auditable)[ Packagist](https://packagist.org/packages/govelid/laravel-multi-auditable)[ RSS](/packages/govelid-laravel-multi-auditable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)DependenciesVersions (16)Used By (0)

Simple Package for Multi Audit Trail Table
==========================================

[](#simple-package-for-multi-audit-trail-table)

This package simplifies the management of models that use audit trails, enabling multiple audit tables for each module within your Laravel web application.

Support the Project
-------------------

[](#support-the-project)

If you find this package useful, consider supporting its development:

[![Support Me](https://camo.githubusercontent.com/77dd26bdba8c2021f734b60cdfc2fd3a53ad9aac3201d5f134c1390ac63bccb8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f537570706f72742532304d652d536177657269612d6f72616e6765)](https://saweria.co/rakaarif)

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

[](#installation)

1. Install the package via composer:

    ```
    composer require govelid/laravel-multi-auditable
    ```
2. Example: Run the following Artisan command to create the necessary files:

    ```
    php artisan make:auditable ProjectAuditable
    ```

    This will generate:

    - A migration file for the table `project_auditables`.
    - A Trait file `ProjectAuditableTrait`.
    - A Model file `ProjectAuditable`.
3. Run migration
4. To add audit trail functionality to the `Project` model, simply include the trait:

    ```
    use ProjectAuditableTrait;
    ```

Customization
-------------

[](#customization)

You can override the following methods in your model for further customization:

### Timestamp Attributes

[](#timestamp-attributes)

Override the default timestamp attributes (e.g., `created_at`, `updated_at`):

```
protected function getTimestampAttributes()
{
    return ['updated_at', 'created_at'];
}
```

### Audit Record ID

[](#audit-record-id)

Specify the audit record ID (defaults to `id`):

```
public function getAuditRecordId()
{
    return $this->id;
}
```

### Audit Fields Notes

[](#audit-fields-notes)

Add custom notes for audit trails:

```
public function getAuditFieldsNotes()
{
    return $this->id;
}
```

### Audit Fields for Delete

[](#audit-fields-for-delete)

Define the fields to be logged during deletion:

```
public function getAuditFieldsForDelete()
{
    return ['id'];
}
```

---

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance43

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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 ~8 days

Recently: every ~26 days

Total

15

Last Release

455d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c6824f789ccfa94e6409b71f9ef0ae6070a424d00a480af3bac75880e1a676a?d=identicon)[rakaarifbudiman](/maintainers/rakaarifbudiman)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/govelid-laravel-multi-auditable/health.svg)

```
[![Health](https://phpackages.com/badges/govelid-laravel-multi-auditable/health.svg)](https://phpackages.com/packages/govelid-laravel-multi-auditable)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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