haruncpi/laravel-user-activity
Laravel User Activity is a lightweight package for monitoring and logging user actions in Laravel apps. It tracks logins, logouts, page visits, and other activity in a database-backed log, with simple setup and an easy way to review recent user behavior.
Adopt when:
Look elsewhere when:
spatie/laravel-activitylog or owen-it/laravel-auditing fit better. This package records that a request happened, not what changed.To executives: This is a small, reversible dependency that unlocks a customer-facing "recent activity / login history" feature and gives support a factual timeline for account disputes — both common drivers of churn and ticket volume. Cost is roughly one engineer for a few days plus modest database growth. It does not make us compliant with audit standards, and we should not market it as such; treat it as a foundation we can later replace or extend.
To engineering: Low integration surface — composer install, publish migration/config, register middleware, index user_id and created_at, and add a scheduled prune job (we own retention). Two caveats to validate in the spike: it captures full URLs (query strings may contain PII — plan redaction), and request-level logging will inflate the table under load, so confirm write cost against our traffic profile before enabling globally rather than on selected routes.
The ask: Approve a one-sprint spike behind a feature flag on a single surface (user account settings), with an explicit retention policy and a documented exit path — either to a field-level auditing package or an in-house middleware — if compliance or scale requirements change.
How can I help you explore Laravel packages today?