VideoPolicy
class VideoPolicy extendsCachedPolicy
Traits
HandlesAuthorization
Constants
TIME |
Time to store the cached values. (is irrelevant for the array store) |
Properties
protectedCache | $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
forceEditIn(User$user,Video$video)
Determine if the user can edit things created by other users in the given video.
QueryBuilder
Details
inCachedPolicyat line31
__construct()
Create a new CachedPolicy.
inCachedPolicyat line43
mixed
remember(string$key,callable$callback)
Wrapper for the Cache::remember function of the array cache.
at line23
bool|null
before(User$user,string$ability)
Intercept all checks.
at line37
bool
access(User$user,Video$video)
Determine if the given video can be accessed by the user.
at line51
bool
editIn(User$user,Video$video)
Determine if the user can edit something in the given video.
at line71
bool
forceEditIn(User$user,Video$video)
Determine if the user can edit things created by other users in the given video.
at line87
bool
update(User$user,Video$video)
Determine if the given video can be updated by the user.