upcodersir/otp-auth
最新稳定版本:1.0.8
Composer 安装命令:
composer require upcodersir/otp-auth
包简介
A Laravel package to send/verify OTP authentication codes
README 文档
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
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-09