Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Auditing Laravel Package

owen-it/laravel-auditing

Audit Eloquent model changes in Laravel with a simple trait. Automatically record create/update/delete events, track who/when/what changed, and retrieve audit history for reports, compliance, and anomaly detection. Flexible drivers and rich metadata support.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Compliance & Regulatory Requirements: Automatically track changes to critical models (e.g., financial records, user data, or medical history) to meet GDPR, HIPAA, or SOX compliance.
  • Audit Trails for Debugging: Enable developers to trace model changes for debugging production issues (e.g., "Why was this user’s role updated?").
  • Feature Roadmap for Admin Panels: Build a "Change History" feature in admin dashboards (e.g., Shopify-like audit logs for e-commerce platforms).
  • Build vs. Buy Decision: Avoid reinventing a custom auditing system when this package offers 90%+ functionality out-of-the-box (e.g., no need to build a separate audits table or event listeners).
  • Use Cases:
    • Financial Systems: Track changes to transactions, invoices, or user permissions.
    • Healthcare Apps: Log modifications to patient records or treatment plans.
    • SaaS Platforms: Monitor critical user actions (e.g., plan upgrades, API key rotations).
    • Content Management: Audit edits to blog posts, product listings, or user-generated content.

When to Consider This Package

  • Adopt if:

    • Your Laravel app uses Eloquent models and needs automated change tracking.
    • You require minimal setup (just add a trait to models) and zero manual logging.
    • You need flexibility (e.g., exclude sensitive fields, customize resolvers for IP/URL/user agents).
    • Your team prioritizes compliance or debugging over custom development time.
    • You’re using Laravel 11.x–13.x (active support) or Lumen (with minor tweaks).
  • Look Elsewhere if:

    • You need real-time event streaming (e.g., Kafka/SQS) instead of database storage.
    • Your app uses non-Eloquent models (e.g., raw SQL queries or non-Laravel ORMs).
    • You require advanced analytics (e.g., machine learning on audit logs) and need a dedicated tool like Sentry or Datadog.
    • Your compliance needs exceed Laravel’s capabilities (e.g., blockchain-based immutability).
    • You’re on Laravel <5.8 (end-of-life versions lack support).

How to Pitch It (Stakeholders)

For Executives: "This package lets us automatically track every change to critical data—like a financial audit trail or patient records—without writing custom code. It’s MIT-licensed, battle-tested (3.5K+ stars), and integrates seamlessly with Laravel. For example, if a user’s payment method is updated, we’ll instantly log who, when, and what changed—helping us meet compliance requirements and debug issues faster. The cost? Zero—it’s open-source and saves dev time."

For Engineers: *"Laravel Auditing gives us zero-effort auditing for Eloquent models. Just add a trait to your model, and it logs:

  • Changes: Old/new values for modified fields.
  • Metadata: IP, user agent, and the user who made the change.
  • Flexibility: Exclude sensitive fields, customize resolvers, or disable auditing per model. It’s lightweight, well-documented, and supports Laravel 11–13. Perfect for compliance, debugging, or admin panels. No more manual logging—just drop it in and go."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codraw/framework-extra-bundle
codraw/messenger
codraw/security
codraw/mailer
codraw/contracts
codraw/profiling
codraw/dependency-injection
codraw/tester
codraw/core
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony