OpxCore 授权接口。
github.com/opxcore/authorization-interface
源代码
问题
安装: 6
依赖项: 0
建议者: 0
安全: 0
星标: 0
关注者: 2
分支: 0
公开问题: 0
Requires
None
Requires (Dev)
Suggests
Provides
Conflicts
Replaces
MIT 5b64ea712083d73aed3c5bbb3b13c7b064598bf7
authorizationopxcore
This package is auto-updated.
Last update: 2024-09-29 05:42:47 UTC
AuthorizationInterface 是授权检查的抽象。检查器必须返回 AuthorizationResponse。
AuthorizationInterface
AuthorizationResponse
$actions=['update']; $response = AuthorizationInterface::check([...$permissions], $actions); if($response->can('update') { // Do some update actions }