knovator / authentication
该包的最新版本(v2.0)没有可用的许可证信息。
这是认证模块的描述
v2.0
2021-05-20 08:33 UTC
Requires
- laravel/passport: ^7.2|^10.0
- laravel/ui: ^3.0
- prettus/l5-repository: ^2.6
- robincsamuel/laravel-msg91: dev-master|^1.0
- dev-v2.0-branch
- v2.0
- v1.9
- v1.8
- v1.7
- v1.6
- v1.5
- v1.4
- v1.3
- v1.2
- v1.1
- dev-v1.9-branch
- dev-feature-common_branch
- dev-v1.8-branch
- dev-v1.7-branch
- dev-master
- dev-feature-authentication_user_multiple_accounts
- dev-v1.6-branch
- dev-feature-tag_v1.4_branch
- dev-v1.5-branch
- dev-v1.3-branch
- dev-v1.4-branch
- dev-feature-new_changes
- dev-v1.4-new_branch
- dev-hotfix-bookmark_filter
- dev-feature-add_bookmark
- dev-v1.2-branch
- dev-v1.1-branch
This package is not auto-updated.
Last update: 2024-09-29 15:17:35 UTC
README
此包用于用户认证,使用安全的 Laravel Passport,它可以在几分钟内为您的 Laravel 应用程序提供一个完整的 OAuth2 服务器实现。[https://laravel.net.cn/docs/5.7/passport]
迁移已添加
- 用户
- 角色
- 用户角色(交叉表)
- 权限
- 权限角色(交叉表)
功能
- 基于权限的认证处理用户角色
在您的 composer.json 中包含 knovator/authentication 包并更新您的依赖项
您需要在 composer.json 文件中添加认证仓库。
{
"type": "vcs",
"url": "git@github.com:knovator/authentication.git"
}
],
您需要在 config/auth.php 的 User Providers 部分中添加 multiple_column
此包包含了 laravel/passport 和 prettus/l5-repository 包。
composer require knovator/authentication
在您的 config/app.php 中,将 Knovator\Authentication\AuthServiceProvider::class 添加到 providers 数组的末尾
发布配置
php artisan vendor:publish --provider "Knovator\Authentication\AuthServiceProvider"