定制 steelants/laravel-auth 二次开发

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

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

steelants/laravel-auth

最新稳定版本:1.1.7

Composer 安装命令:

composer require steelants/laravel-auth

包简介

Laravel Auth

README 文档

README

Currently WIP

Created by: SteelAnts s.r.o.

Total Downloads

Install

  1. Artisan Command
install:auth
  1. add routes to web.php
Route::auth();

Optional Features

*Both features are disabled by default to avoid route collisions.

Email verification

  • Protects routes with the verified middleware and provides notice/verify/resend endpoints when enabled.
  • Requires Route::auth(['verify' => true]); and the HandlesEmailVerification plugin trait added to your AuthController next to Authentication.

MFA (TOTP)

  • Adds TOTP setup/verification screens and enforces checks via the verified.totp middleware.
  • Requires Route::auth(['totp' => true]); and the HandlesTotp plugin trait added to your AuthController next to Authentication.
  • Install QR dependency in your app: composer require endroid/qr-code.

Auth controller setup

Your AuthController pulls in the core auth trait, plus the plugin traits for optional features:

use SteelAnts\LaravelAuth\Traits\Authentication;
use SteelAnts\LaravelAuth\Traits\HandlesEmailVerification;
use SteelAnts\LaravelAuth\Traits\HandlesTotp;

class AuthController extends Controller
{
    use Authentication;
    use HandlesEmailVerification; // enable email verification flows
    use HandlesTotp;              // enable TOTP MFA flows
}

Development

  1. Create subfolder /packages at root of your laravel project

  2. clone repository to sub folder /packages (you need to be positioned at root of your laravel project in your terminal)

git clone https://github.com/steelants/laravel-auth.git ./packages/laravel-auth
  1. edit composer.json file
"autoload": {
	"psr-4": {
		"SteelAnts\\LaravelAuth\\": "packages/laravel-auth/src/"
	}
}
  1. Add provider to bootstrap/providers.php
return [
	...
	SteelAnts\LaravelAuth\AuthServiceProvider::class,
	...
];
  1. aplicate packages changes
php artisan install:auth --force

Contributors

Other Packages

steelants/datatable

steelants/form

steelants/modal

steelants/boilerplate

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固