Weave 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

Activity Log Laravel Package

dcodegroup/activity-log

dcodegroup/activity-log is a Laravel package for recording application activity and building audit trails. It helps track user actions and model changes, making it easier to monitor who did what and when within your app.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Compliance & audit readiness (SOC 2, GDPR accountability, HIPAA-adjacent): gives you a queryable record of who changed what, when for Eloquent models — the raw material auditors and security questionnaires ask for. This is the single strongest reason to adopt it.
  • Build vs. buy: replaces a "we'll just add a created_by column and a changes table" sprint that reliably metastasizes into a bespoke, untested, unmigrated subsystem. Buying here is usually a 1–3 day integration instead of a 2–4 week build plus ongoing ownership.
  • Support & incident forensics: lets support and on-call reconstruct object state at a point in time ("what did this account look like before the customer's complaint?") without engineering writing one-off queries.
  • In-product feature surface: change history panels, activity feeds, "recently updated by…" widgets, and notification triggers all sit on top of the same log. Useful for roadmap sequencing — one data layer, several shippable features.
  • Enterprise tiering / retention policy: activity retention windows (30/90/365 days, export) are a natural paid-tier lever and a common procurement checkbox.
  • Roadmap signal from this release: 4.0.6 is a patch on the 4.x line with a single internal ticket (KAN-4983-qa-al-feature) and no described behaviour change. Treat it as maintenance, not a capability shift — it does not unlock new product decisions, but it does confirm the maintainer is still shipping.

When to Consider This Package

Consider it when:

  • You're on a supported Laravel/PHP version and your audit needs are centred on Eloquent model changes — create/update/delete, attributable to a user or system causer.
  • You want a drop-in trait + config solution with conventional Laravel ergonomics (migrations, config publishing, model morphs) rather than a platform commitment.
  • Your expected volume is application-scale (thousands to low millions of rows), not event-stream scale.
  • You have no in-house audit standard already, or a weak one you'd like to retire.
  • You can pin a version and review diffs before upgrading — i.e. you have at least a light dependency-review habit.

Look elsewhere when:

  • You need tamper-evident or legally-grade audit (append-only ledger, hash chaining, WORM storage, external SIEM). This package is a convenience layer, not a compliance appliance — plan to forward logs to immutable storage regardless.
  • You're already standardised on Spatie's activitylog and its ecosystem; the migration cost and community/tooling depth usually outweigh any marginal gain. Switching needs a concrete driver, not curiosity.
  • You need high-throughput ingestion or analytics — route model events to a queue/warehouse (Kafka, ClickHouse, BigQuery) and keep only a summary row locally.
  • Your architecture is polyglot or non-Laravel for the systems that must be audited; a Laravel-only package fragments your audit story.
  • Governance risk is unacceptable: the project reads as a small-vendor/single-maintainer effort, and release notes are effectively opaque (feature KAN-4983-qa-al-feature describes nothing). If you require documented changelogs, CVE responsiveness, or a support contract, budget for that gap or choose otherwise.

Before adoption, verify: PHP/Laravel version support matrix, upgrade path from 4.0.5 → 4.0.6 (read the diff, not the note), retention/pruning behaviour, PII handling in logged payloads (redaction of sensitive attributes), and index/table-growth characteristics under your write volume.

How to Pitch It (Stakeholders)

For executives: "We need an audit trail for [compliance driver / enterprise customer / incident response]. Building it ourselves is roughly [X] engineering weeks plus permanent maintenance and a recurring source of bugs. This package is a mature-convention Laravel library that gets us 80% of the way in days, and keeps the audit record in our own database — no new vendor, no data leaving our infrastructure. It also gives us a ready-made lever for enterprise retention/export pricing. The main caveat is that it's a small open-source project with thin release documentation, so we'll pin the version, review upgrades, and forward logs to immutable storage if we ever need legally-defensible retention. Net: low cost, low lock-in, reversible."

For engineering: "It's a trait-plus-config activity log for Eloquent — causer/subject morphs, per-model logging, standard migrations and config publishing, no exotic dependencies. Cost is a middleware/trait touch on the models we care about, plus a queue decision so logging doesn't sit in the request path. Two things to own: (1) redact sensitive attributes before they hit the table — the package will happily log them; (2) treat upgrades as reviewed changes, because 4.0.6 shipped with a ticket-number-only changelog and no described behaviour. Add a pruning/archival job from day one, and keep the write path off the hot transaction if volume grows."

Ask: approve a timeboxed spike (1 sprint, one non-critical model) to validate volume, PII redaction, and upgrade hygiene before committing it as the app-wide audit standard.

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.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels