ProjectInvitationPolicy
class ProjectInvitationPolicy extends CachedPolicy
Traits
HandlesAuthorization
Constants
TIME |
Time to store the cached values. (is irrelevant for the array store) |
Properties
protected Repository | $cache | The cache instance to use for caching policies. |
from CachedPolicy |
Methods
mixed
remember(string $key, callable $callback)
Wrapper for the Cache::remember function of the array cache.
from
CachedPolicy
bool
access(User $user, ProjectInvitation $invitation)
Determine if the user can access the given invitation.
bool
destroy(User $user, ProjectInvitation $invitation)
Determine if the user can delete the given invitation.
Details
in
CachedPolicy at line 31
__construct()
Create a new CachedPolicy.
in
CachedPolicy at line 43
mixed
remember(string $key, callable $callback)
Wrapper for the Cache::remember function of the array cache.
at line 22
bool|null
before(User $user, string $ability)
Intercept all checks.
at line 36
bool
access(User $user, ProjectInvitation $invitation)
Determine if the user can access the given invitation.
at line 54
bool
destroy(User $user, ProjectInvitation $invitation)
Determine if the user can delete the given invitation.