emotality/laravel-otp is a Laravel package for a laravel package to send otp via email & sms..
It currently has 2 GitHub stars and 23 downloads on Packagist (latest version v1.1).
Install it with composer require emotality/laravel-otp.
Discover more Laravel packages by emotality
or browse all Laravel packages to compare alternatives.
Last updated
A Laravel package to send OTP via email & SMS. Specify different models and their columns!
composer require emotality/laravel-otpphp artisan vendor:publish --provider="Emotality\OTP\OTPServiceProvider"config/otp.php fileImport OTP class:
use Emotality\OTP\OTP;
Send OTP to the user that just logged in:
OTP::email($user);
OTP::sms($user);
OTP::smsOrEmail($user);
OTP::smsAndEmail($user);
If OTP was entered correctly, you can remove OTP from database:
OTP::clear($user);
laravel-otp is released under the MIT license. See LICENSE for details.