dineshstack/laravel-audit
dineshstack/laravel-audit is a lightweight Laravel package for tracking model changes and recording audit trails. It helps log create, update, and delete events, old/new attribute values, and user context for compliance and debugging.
Architecture fit
audits table. That works until it doesn't: pivot/relation changes go uncaptured, console and queue contexts lose the actor, multi-model transactions fragment into unrelated rows, and nobody masks anything. The package's value proposition is precisely those edge cases.Integration feasibility
composer require, then publish config/migrations. Expect a half-day to a day for a first working integration in a mid-size app; longer if retrofitting masking policy onto existing sensitive models.update() statements — the latter is a common audit gap and a frequent auditor finding.Technical risk
9.97 score sitting next to a very small adoption footprint. That score should be treated as a signal about code quality, not about ecosystem durability. A break in maintenance is plausible within a 12–24 month horizon.Key questions for the maintainer / spike
insert()/upsert(), pivot table changes, soft deletes and restores?Stack fit
DB::statement for bulk mutations, or run a polyglot persistence layer. In those cases audit coverage will have holes that we would have to close ourselves, eroding the buy-versus-build case.Migration path
audits table: expect a schema reconciliation exercise. Decide up front whether to (a) migrate historical rows into the new schema, (b) keep the old table frozen as read-only history, or (c) dual-write for a transition window. Option (b) is usually the cheapest defensible answer for compliance — history is preserved, and no risky backfill is required.AuditRecorder) even though the package is framework-native. This is the single highest-leverage decision here: it makes the vendor swap a one-class change if maintenance lapses, and it lets us stub auditing in tests.Compatibility
TrustProxies. Behind an ALB or Cloudflare, an unconfigured proxy trust setting will record the load balancer's IP and silently degrade the value of the field.Sequencing
AuditRecorder wrapper and the REST API disabled.Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?