NewWe open-sourced 50+ Laravel packages
Custom AI apps, agents and automation — Roundly ConsultingRoundly
All packages

All events live in RoundlyConsulting\Auth\Events, are final readonly, carry the guard name and never a secret — hook your audit log here:

GroupEvents
LoginLoginSucceeded, LoginFailed, LoginChallenged, ChallengeStepCompleted, ChallengeFailed, LoginThrottled, MagicLinkRequested, EmailOtpRequested, NewDeviceDetected, SuspiciousLoginDetected
Tokens & sessionsTokensIssued, TokensRefreshed, LoggedOut, AccountTokensInvalidated, RefreshTokenReuseReported
AccountAccountRegistered, AccountDisabled, AccountEnabled, AccountLocked, AccountUnlocked, LocaleUpdated, Reauthenticated
PasswordsPasswordResetRequested, PasswordReset, PasswordChanged, PasswordRehashed, BreachedPasswordCheckFailed
E-mailEmailVerificationSent, EmailVerified, EmailChangeRequested (only when a link was issued — server-side, never show it to the requester), EmailChanged
InvitationsInvitationCreated, InvitationSent (only when the link was mailed), InvitationRevoked, InvitationAccepted
2FA & passkeysTwoFactorEnabled, TwoFactorDisabled, RecoveryCodesRegenerated, RecoveryCodeUsed, PasskeyAdded, PasskeyRemoved
ActivityLoginActivityRecorded (activityId, guard)

AccountDisabled, AccountEnabled, AccountLocked, AccountUnlocked, PasswordChanged, TwoFactorDisabled and PasskeyRemoved also carry ?actor (their last field, a Model): who acted when it was not the account itself — the host passed actor:, e.g. an admin or a support tool. It is null for the account’s own changes, the HTTP endpoints, the automatic lockout and every call without actor:, and travels to queued listeners by identifier too.

use Illuminate\Support\Facades\Event;
use RoundlyConsulting\Auth\Events\AccountRegistered;
use RoundlyConsulting\Auth\Events\AccountTokensInvalidated;

Event::listen(AccountRegistered::class, fn (AccountRegistered $event) => Statistics::increment('registrations'));

Event::listen(function (AccountTokensInvalidated $event): void {
    // $event->guard, ->account, ->reason (InvalidationReason), ->scope (InvalidationScope), ->revoked
});

Read $invitation->payload in an InvitationAccepted listener to assign roles, and enrich activity rows from LoginActivityRecorded. The lower packages keep firing their own events; Laravel’s Illuminate\Auth\Events are not dispatched (a Registered event would trigger Laravel’s verification mail on MustVerifyEmail models).

Show your open-source love

This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.

More ways to support, including crypto

By donating, you agree to our donation terms.

Want this built into your product?

We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.