定制 hos3ein/novel-auth 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

hos3ein/novel-auth

Composer 安装命令:

composer require hos3ein/novel-auth

包简介

Laravel authentication with password or otp or both and highly configurable

README 文档

README

Latest Stable Version Packagist Download Latest Unstable Version Packagist Stars Packagist PHP Version Support License

  • 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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-07-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固