承接 sepehrcorefinity/google2fa-visanduma 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. 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

];

  1. use ProtectWith2FA trait in user model

use ProtectWith2FA

  1. add TwoFa middleware to nova config file

\Visanduma\NovaTwoFactor\Http\Middleware\TwoFa::class

  1. register NovaTwoFactor tool in Nova Service Provider

new \Visanduma\NovaTwoFactor\NovaTwoFactor()

  1. run php artisan migrate
  2. You are done !

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-01