We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc889b0 commit bd7f35cCopy full SHA for bd7f35c
src/Contracts/Services/IAuthorizationService.php
@@ -12,6 +12,8 @@
12
interface IAuthorizationService
13
{
14
/**
15
+ * Check if the current user can access an action behind the given {@link $policy}.
16
+ *
17
* @param TResource|null $resource
18
* @param IPolicy|class-string $policy
19
* @return bool
@@ -20,6 +22,8 @@ interface IAuthorizationService
20
22
public function authorizePolicy(mixed $resource, IPolicy|string $policy): bool;
21
23
24
25
+ * Check if the current user can access an action behind the given {@link $requirements}.
26
27
28
* @param iterable<IRequirement> $requirements
29
0 commit comments