Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Relay Authorization Bundle Laravel Package

dbp/relay-authorization-bundle

View on GitHub
Deep Wiki
Context7

PHP Backend API

Resources registered for access control are uniquely identified by

  • resourceClass the fully qualified classname of the resource
  • resourceIdentifier the resource identifier uniquely identifying the resource within resourceClass

Resource action grants define an action the grant holder is authorized to perform on a resource (identified by resourceClass and resourceIdentifier). The available set of actions can be freely defined by the application, except for the manage action, which is predefined.

Method registerResource

Registers a new resource for access control, usually on resource creation. The user logged-in during the registration is automatically issued a mange grant, which entitles to issue additional grants for that resource.

Method deregisterResource

De-registers a resource from access control, usually on resource deletion, and deletes all grants for the resource.

Method deregisterResources

De-registers multiple resources from access control, usually on resource deletion, and deletes all grants for the resources.

Method getGrantedItemActionsForCurrentUser

Gets the item actions that the current user is authorized to perform on the given resource item, e.g.:

['read']

Method getGrantedItemActionsPageForCurrentUser

Gets a page (=subset) of all resource item actions that the current user is authorized to perform and that contain at least one of the given item actions.

The result is a associative array mapping the resource identifiers to the granted actions:

[
   '01902a56-4cc7-71ba-aa71-72a27f1ba9b6' => ['manage', 'read'],
   '01902a56-b7f2-78f0-a46a-a886b02291a2' => ['write'],
]

Method getGrantedCollectionActionsForCurrentUser

Gets the collection actions that the current user is authorized to perform on the given resource collection, e.g.:

['manage', 'create']
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
yandex/translate-api
voku/simple_html_dom
league/flysystem-vfs
bkwld/upchuck
filament/spatie-laravel-tags-plugin
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php