bassoumi / acl
管理 dart 服务之间的 ACL
1.0.1
2020-03-19 13:32 UTC
Requires
- php: ^7.1.3
- firebase/php-jwt: ^5.1
This package is auto-updated.
Last update: 2024-09-19 23:05:11 UTC
README
- composer require bassoumi/acl
- 注册 DartACLServiceProvider
- 在 app/bootstrap 中注册 auth 中间件
- 在 auth.php 中更改驱动为 dart-jwt
- 将 providers.users.model 更改为 DartUser
- 向受保护的路由添加 auth:api 中间件
- 添加环境变量:DART_JWT_SECRET