PHPackages                             quarks/laravel-auditors - 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. quarks/laravel-auditors

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

quarks/laravel-auditors
=======================

Record created by, updated by and deleted by on Eloquent models automatically.

1.2.1(4y ago)317.3k1MITPHPPHP &gt;=7.2

Since Aug 16Pushed 4y agoCompare

[ Source](https://github.com/qtsolv/laravel-auditors)[ Packagist](https://packagist.org/packages/quarks/laravel-auditors)[ RSS](/packages/quarks-laravel-auditors/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (1)Versions (6)Used By (1)

quarks/laravel-auditors
=======================

[](#quarkslaravel-auditors)

Record created by, updated by and deleted by (if [SoftDeletes](https://laravel.com/docs/6.x/eloquent#soft-deleting) added) on [Eloquent](https://laravel.com/docs/6.x/eloquent) models automatically.

[![Latest Version](https://camo.githubusercontent.com/71ed279219f0905526154cf40a42f2cbe7ec6f4202f7a87f0a23b155307717d6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7174736f6c762f6c61726176656c2d61756469746f72732e7376673f7374796c653d666c61742d737175617265)](https://github.com/qtsolv/laravel-auditors/releases)[![Downloads](https://camo.githubusercontent.com/63a4771bd14146591f3e423374b1df29752d7621800e152c1e9c17f89a6f8c35/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f717561726b732f6c61726176656c2d61756469746f72732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/quarks/laravel-auditors)[![PHP Version](https://camo.githubusercontent.com/c5d9a5ee4c0f99c39c60458cdde64b73408c3d6520e8aad027a9e59b69ab0b4c/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e322b2d3838393262652e7376673f7374796c653d666c61742d737175617265)](https://www.php.net/downloads)[![License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

### Installation

[](#installation)

```
composer require quarks/laravel-auditors
```

### Usage

[](#usage)

In your migration classes, add the auditor columns to your table as below:

```
/**
 * Run the migrations.
 *
 * @return void
 */
public function up()
{
    Schema::table('users', function (Blueprint $table) {
        $table->auditors();
    });
}

/**
 * Reverse the migrations.
 *
 * @return void
 */
public function down()
{
    Schema::table('users', function (Blueprint $table) {
        $table->dropAuditors();
    });
}
```

Then add the `HasAuditors` trait your model classes as follows:

```
namespace App\Models;

use Illuminate\Foundation\Auth\User as Authenticatable;
use Quarks\Laravel\Auditors\HasAuditors;

class User extends Authenticatable
{
    use HasAuditors;
}
```

From now onwards, `createdBy`, `updatedBy` and `deletedBy` relations on this model will automatically be saved on `created`, `updated` and `deleted` model events respectively.

### License

[](#license)

See [LICENSE](LICENSE) file.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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 ~36 days

Total

5

Last Release

1638d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/74d769ac0703ce0c1ab0b9cbbf9907527abcdbf228b7efabb8e6f98c6f8ccc24?d=identicon)[vpzqtsolv](/maintainers/vpzqtsolv)

---

Top Contributors

[![vpzqtsolv](https://avatars.githubusercontent.com/u/84960759?v=4)](https://github.com/vpzqtsolv "vpzqtsolv (8 commits)")[![vaibhavpandeyvpz](https://avatars.githubusercontent.com/u/6647172?v=4)](https://github.com/vaibhavpandeyvpz "vaibhavpandeyvpz (1 commits)")

---

Tags

eloquentlaravelphpsecurity

### Embed Badge

![Health badge](/badges/quarks-laravel-auditors/health.svg)

```
[![Health](https://phpackages.com/badges/quarks-laravel-auditors/health.svg)](https://phpackages.com/packages/quarks-laravel-auditors)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198741.5k12](/packages/pgvector-pgvector)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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