hos3ein/novel-auth
Composer 安装命令:
composer require hos3ein/novel-auth
包简介
Laravel authentication with password or otp or both and highly configurable
README 文档
README
- Laravel authentication with Password or OTP or both and highly configurable
Sample
Install
composer require hos3ein/novel-auth
php artisan vendor:publish --provider="Hos3ein\NovelAuth\NovelAuthServiceProvider"
php artisan migrate
The Novel Auth Service Provider
The vendor:publish command discussed above will also publish the App\Providers\NovelAuthServiceProvider class. You
should ensure this class is registered within the providers array of your application's config/app.php configuration
file.
'providers' => [ // ... App\Providers\NovelAuthServiceProvider::class ]
Add HasOtpCodes and NovelAuthAuthenticatable to your eloquent model
class User extends Authenticatable { use HasOtpCodes, NovelAuthAuthenticatable; ... }
Final step
Implement methods in App\Actions\NovelAuth\OtpManager.php in order to do how to send SMS or make a Call and others.
License
The Novel-Auth is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 91
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-19