opxcore/authorization-interface

OpxCore authorization interface.

1.0.2 2020-07-02 08:23 UTC

This package is auto-updated.

Last update: 2024-11-29 06:04:08 UTC


README

AuthorizationInterface is abstraction for authorization checks. Checker must return AuthorizationResponse.

$actions=['update'];

$response = AuthorizationInterface::check([...$permissions], $actions);

if($response->can('update') {
    // Do some update actions
}