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.
Enhanced Security for Authentication:
Build vs. Buy:
Roadmap Priorities:
/login route) or account recovery.Use Cases:
*"This package lets us deploy secure, passwordless authentication with minimal dev effort. By replacing traditional logins with one-time passwords (OTP), we can:
Ask: "Should we prioritize this for [high-risk accounts/admin panels/account recovery]?"
*"Spatie’s Laravel One-Time Passwords gives us a batteries-included OTP system with:
composer require spatie/laravel-one-time-passwords and configure notifications.
*We can integrate this into:/login with OTP).Ask: "Should we scope this for [MVP/Phase 1] or go all-in on [email + SMS]?" "Do we want to use the Livewire component or build a custom frontend?"
How can I help you explore Laravel packages today?