bolechen/nova-activitylog
A Laravel Nova integration for spatie/laravel-activitylog that lets you browse, filter, and inspect activity logs and model changes directly from your Nova dashboard.
logOnlyDirty, dontSubmitEmptyLogs), and who is attributed as causer are all product scope. Getting the domain-level naming convention right (billing / auth / admin / integrations rather than model class names) determines whether the panel is useful in six months or becomes an unreadable stream of empty diffs.activitylog:clean makes data retention a configurable knob, which means it's a decision you own with security/legal — not a default you inherit. Likewise, the panel's authorization is all-or-nothing unless you scope it, so "who can see cross-tenant activity" is a product question surfaced, not answered, by this install.status: pending → paid by user 412 at a timestamp). Ship that flow first; if it doesn't come up in week one, neither will the rest. A detail-page history panel inside the existing Nova resource is often more valuable day-to-day than the global browse screen.Adopt when all of the following hold:
spatie/laravel-activitylog as the logging substrate. This package is a viewer. An empty panel is a missing-instrumentation problem nine times out of ten, not a broken tool.activity_log sized for millions of rows, pruning scheduled at install time, and canSee() gated by a policy rather than left open.Look elsewhere — or scope a separate feature — when:
activity_log is an ordinary table.DB::table()->update(), Model::query()->update()), creating invisible audit gaps you can't close without routing writes through models or logging manually.One line: A free, MIT-licensed Nova screen that shows administrators who changed what, to which record, and when — built on the activity-logging library we'd need anyway.
For executives: It converts an unanswerable support question ("why did this invoice change?") into a two-click lookup inside the admin panel we already run. It costs a composer install and an afternoon, not a sprint. Its real value as a first step is evidence: if support and security don't use it in the first few weeks, we've learned that audit visibility is not worth funding — cheaply and early. It is explicitly not our compliance answer; durability, retention, and access policy remain ours to define.
For engineering: The durable asset here is the Spatie logging layer, our log-naming convention, our causer resolution, and our indexes — not this UI. The package is a thin, unpinned-risk wrapper over that substrate, so plan to fork it (~one tool class plus a Vue component) and own it internally rather than treat it as a dependency. Two non-negotiables before rollout: decide the morph map on day one (retrofitting means a data migration), and verify authorization by hand with a low-privilege Nova account — the tool's gate is likely all-or-nothing, so cross-tenant visibility needs a policy or a scoped query. Instrument models first, prove rows land in activity_log, then install the viewer. Schedule pruning alongside the migration.
How can I help you explore Laravel packages today?