spatie/laravel-one-time-passwords
Generate and verify secure one-time passwords (6‑digit by default) in Laravel. Sends OTPs via mail notifications (extendable to SMS/other channels) and includes a Livewire login component. Optional Flux support provides an enhanced OTP input UI.
The packages will fire these events for you to hook into:
OneTimePasswordSuccessfullyConsumed: fired when a one-time password is successfully used.FailedToConsumeOneTimePassword: fired when a one-time password fails to be used.You can use these events to perform actions when a one-time password is successfully used or fails to be used. For example, you can use these events to log the usage of one-time passwords using our activity log package.
How can I help you explore Laravel packages today?