upcodersir / otp-auth
A Laravel package to send/verify OTP authentication codes
1.0.8
2025-06-11 09:48 UTC
README
OTP-AUTH
A Laravel package to send/verify OTP authentication codes
Installation
To install this package in your Laravel project, use the following command:
composer require upcodersir/otp-auth
To publish config file, run the following command:
php artisan vendor:publish
Running that command, creates a otp.php
file in your project's config folder, and you need to customize it.
- valid_time
- user_table
- token_table
- sms_client
- sms_api_url
- sms_api_key
- mobile_containing_table
If your user's mobile numbers are not in user_table
table, set mobile_containing_table
to its name.
Then run artisan migrate
to migrate tables:
php artisan migrate
Usage