sepehrcorefinity/google2fa-visanduma
最新稳定版本:v1.0.0
Composer 安装命令:
composer require sepehrcorefinity/google2fa-visanduma
包简介
Nova Two Factor Authentication
README 文档
README
Laravel nova in-dashboard 2FA security feature
- pubish config & migration
php artisan vendor:publish --provider="Visanduma\NovaTwoFactor\ToolServiceProvider"
Change configs as your needs
return [
'enabled' => env('NOVA_TWO_FA_ENABLE',true),
'user_table' => 'users',
'user_id_column' => 'id',
'user_model' => \App\Models\User::class
];
- use ProtectWith2FA trait in user model
use ProtectWith2FA
- add TwoFa middleware to nova config file
\Visanduma\NovaTwoFactor\Http\Middleware\TwoFa::class
- register NovaTwoFactor tool in Nova Service Provider
new \Visanduma\NovaTwoFactor\NovaTwoFactor()
- run php artisan migrate
- You are done !
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-01