PendingVolumePolicy
class PendingVolumePolicy 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, PendingVolume $pv)
Determine if the given pending volume can be accessed by the user.
bool
update(User $user, PendingVolume $pv)
Determine if the given pending volume can be updated by the user.
bool
destroy(User $user, PendingVolume $pv)
Determine if the given pending volume can be deleted by the user.
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 32
bool
access(User $user, PendingVolume $pv)
Determine if the given pending volume can be accessed by the user.
at line 49
bool
update(User $user, PendingVolume $pv)
Determine if the given pending volume can be updated by the user.
at line 57
bool
destroy(User $user, PendingVolume $pv)
Determine if the given pending volume can be deleted by the user.