owen-it/laravel-auditing
Track and review changes to your Laravel Eloquent models with minimal setup. Laravel Auditing stores a history of model events and attribute diffs, helping detect anomalies and providing easy access to audit logs for display, reporting, and investigation.
User, Order, Product).Adopt When:
beforeUpdate hooks).Look Elsewhere If:
pg_audit).*"Laravel Auditing is a turnkey solution to automatically log all changes to critical data—like a black box for your database. It’s MIT-licensed, battle-tested (3.4K stars), and integrates seamlessly with our Laravel stack. For $0 in dev time, we can:
*"This package replaces manual beforeUpdate/afterSave hooks with a trait-based, event-driven audit system. Key benefits:
\OwenIt\Auditing\Contracts\Auditable to any Eloquent model to auto-track changes.password) via config.$user->audits()->latest()->get()).
Trade-offs:audits table (migration provided).
Alternatives: Custom logging (higher maintenance) or database triggers (less flexible).
Recommendation: Pilot on 3–5 high-value models (e.g., Order, User) before full rollout."*How can I help you explore Laravel packages today?