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

Laravel User Activity Log Laravel Package

yungts97/laravel-user-activity-log

Lightweight Laravel package that automatically records user activity—logins, logouts, and model changes—into database or custom channels. Ships with a clean query API, configurable log names, and easy integration into existing auth and Eloquent workflows.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Audit & compliance evidence. Authentication event logging is a common control requirement (SOC 2 access control, ISO 27001, internal security reviews). Adopting a maintained package instead of hand-rolled listeners shortens the path to "we can show who authenticated, when, and how."
  • Build vs. buy. A dedicated package replaces roughly a day of bespoke event listeners, tests, and ongoing upkeep. Unless you have non-standard log schemas, retention rules, or downstream SIEM contracts, adopting is the cheaper path.
  • Multi-model / multi-guard architecture. The v1.4.2 fix for multiple authenticable models signals first-class support for apps with separate User, Admin, Customer, etc. This is a real architectural decision point: if your roadmap includes an admin portal or partner portal with its own authenticatable model, this reduces the "we'll need custom logging" caveat.
  • Alerting and log hygiene. The fix for logging events when no user is logged in directly affects false-positive rate in security alerting and SIEM ingestion. Noisy auth logs erode on-call trust and inflate log storage costs.
  • Roadmap inputs. A reliable auth event stream is the prerequisite for a security dashboard, "active sessions" admin UI, failed-login anomaly detection, and forced-logout workflows.

When to Consider This Package

Adopt when:

  • You need an audit trail of login, logout, and failed authentication attempts and have no existing solution.
  • You run multiple guards or authenticatable models and want consistent behavior across them.
  • You prefer a framework-native, tested implementation over custom listeners you must maintain.
  • You want a low-effort baseline that can later feed dashboards or alerting.

Look elsewhere (or build) when:

  • You require immutable / tamper-evident storage, geo-IP enrichment, retention-policy tooling, or direct SIEM connectors — this is an event logger, not a compliance platform.
  • You need vendor SLAs or guaranteed security-response timelines; this is a small package and should be treated as a supply-chain dependency — pin the version, review diffs, and monitor releases.
  • Your Laravel version falls outside the supported matrix, or you have strict data-residency constraints on where auth logs may be written.

For this release specifically: v1.4.2 is a patch release containing bug fixes only — no breaking changes, no deprecations, no new features. It is safe to take, and it improves correctness in exactly the multi-model scenario that most affects larger apps.

How to Pitch It (Stakeholders)

To executives: A small, low-risk dependency that closes a recurring audit gap around authentication logging. It reduces the engineering effort and ongoing maintenance needed to answer "who accessed what, and when" during security reviews and incident response. The latest patch is maintenance-only — no migration work, no user-facing change.

To engineering: Drop-in Laravel package that hooks standard authentication events and writes them through Laravel's logging stack. v1.4.2 fixes two real defects — logging was inconsistent when multiple authenticatable models were in play, and events were being emitted for unauthenticated (guest) requests — and adds .gitattributes to keep the test suite out of the distributed package. Both fixes improve log fidelity and reduce noise in alerting. Recommended next step: install, then add a test asserting the exact expected log line for each authenticatable model and for a failed login, so regressions surface in CI rather than in an audit. Given the patch-level scope, treat this as a version bump and keep an eye on the release history.

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.
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin