Search by

cieplik206 / model-audit

cieplik206

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

Package info

github.com/cieplik206/model-audit

Type:package

pkg:composer/cieplik206/model-audit

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v5.0.2 2026-12-03 20:59 UTC

This package is auto-updated.

Last update: 2026-12-03 21:06:28 UTC


README

A maintained fork of Altek Accountant, based on v5.0.0. It records Eloquent model and relationship changes. The package keeps the upstream PHP namespace, configuration, ledger schema and signature format.

Installation

composer require cieplik206/model-audit:^5.0.2

When migrating from altek/accountant, replace that requirement in your root composer.json with cieplik206/model-audit and remove any VCS override for this fork before updating the lock file. Existing installations can keep using their ledger table. For a new installation, see the package documentation.

Worker isolation

Eloquent restore, sync and toggle operations can emit secondary events while they execute. The observer suppresses those secondary events within the active model or relationship call. A cancelled operation or an exception can no longer leave a suppression flag active for later work in the process.

Development

Run composer install, then vendor/bin/phpunit tests/Unit/RecordableObserverTest.php tests/Integration/RecordingTest.php. Integration tests use an in-memory SQLite database.

Released under the MIT license. Original package by Quetzy Garcia.