lahthony/otp-auth-bundle
A Laravel package for adding OTP-based authentication to your application. It provides one-time password generation, verification, and delivery hooks, making it easier to implement passwordless login or two-factor authentication flows with minimal configuration.
composer require <vendor>/<package> (check the release notes for the exact package name), then publish config and migrations: php artisan vendor:publish --tag=otp-config and php artisan migrate.App\Models\User model (typically HasOtpAuthentication) and confirm the otp guard/middleware is registered.config/otp.php for driver selection (TOTP, email, SMS), recovery settings, and the recoveryAction route/controller binding.recoveryAction fail loudly when the user has no OTP authentication configured.otp_enabled_at. Do not mark OTP as enabled until verification succeeds.recoveryAction calls in a guard that checks OTP enrollment. In 1.2.4 this action now throws when the user has not enabled OTP, so either catch that exception and redirect to enrollment, or hide recovery links for non-OTP users.recoveryAction throws for users without OTP authentication after upgrading to 1.2.4.recoveryAction now throws an exception if the user has no OTP authentication. This is a behavior change from any silent/no-op path. Guard the route or catch the exception; otherwise users without OTP may see a 500 instead of a helpful redirect.php artisan config:clear).How can I help you explore Laravel packages today?