Страницы · Laravilt
Auth Events
Events dispatched during authentication
The auth package dispatches events for all authentication actions.
Authentication Events
| Event | Data |
|---|---|
LoginAttempt | email, panelId |
LoginFailed | email, panelId, reason |
LoginSuccessful | user, panelId, remember, ip, userAgent |
RegistrationAttempt | data, panelId |
RegistrationCompleted | user, panelId |
Two-Factor Events
| Event | Data |
|---|---|
TwoFactorEnabled | user, method, panelId |
TwoFactorDisabled | user, panelId |
TwoFactorChallengeSuccessful | user, method, panelId |
TwoFactorChallengeFailed | user, method, panelId |
Social Auth Events
| Event | Data |
|---|---|
SocialAuthenticationAttempt | provider, email, providerId, panelId |
SocialAuthenticationSuccessful | user, provider, providerId, isNewUser, panelId |
Passkey Events
| Event | Data |
|---|---|
PasskeyRegistered | user, credentialId, name, panelId |
PasskeyDeleted | user, credentialId, panelId |
Profile Events
| Event | When Fired |
|---|---|
ProfileUpdated | Profile information changed |
PasswordChanged | Password updated |
SessionTerminated | Other sessions logged out |
TokenCreated | API token created |
TokenRevoked | API token deleted |
AccountDeleted | Account permanently deleted |
Notifications
Built-in notifications:
| Notification | Channel | Purpose |
|---|---|---|
TwoFactorCode | Email, SMS | Send 2FA code |
OTPNotification | Email, SMS | Send OTP |
ResetPassword | Password reset link | |
VerifyEmail | Email verification link | |
LoginNotification | New device login alert |
Listening to Events
php
Related
- Routes - Auth routes
- Configuration - Auth configuration