Add Casbin API links.
This commit is contained in:
parent
424697101e
commit
6ada97a6d7
|
@ -222,6 +222,8 @@ Determines whether a user has a permission.
|
|||
Enforcer::hasPermissionForUser('eve', 'articles', 'read'); // true or false
|
||||
```
|
||||
|
||||
See [Casbin API](https://casbin.org/docs/en/management-api) for more APIs.
|
||||
|
||||
### Using a middleware
|
||||
|
||||
This package comes with `EnforcerMiddleware`, `RequestMiddleware` middlewares. You can add them inside your `app/Http/Kernel.php` file.
|
||||
|
@ -363,4 +365,4 @@ Sets your own cache configs in Laravel's `config/lauthz.php`.
|
|||
|
||||
## License
|
||||
|
||||
This project is licensed under the [Apache 2.0 license](LICENSE).
|
||||
This project is licensed under the [Apache 2.0 license](LICENSE).
|
||||
|
|
Loading…
Reference in New Issue