NewsletterPolicy
class NewsletterPolicy 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
bool
bool
bool
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 21
bool
create(User $user)
Determine if the given user can create a newsletter.
at line 34
bool
access(User|null $user, Newsletter $n)
Determine if the given user can access a newsletter.
at line 51
bool
update(User $user, Newsletter $n)
Determine if the given user can update a newsletter.
at line 68
bool
publish(User $user, Newsletter $n)
Determine if the given user can publish a newsletter.
at line 85
bool
destroy(User $user, Newsletter $n)
Determine if the given user can destroy a newsletter.