PackagePolicyInterface
in
Table of Contents
Methods
- moderate() : bool
- Determine whether the user can view any models.
- update() : bool
- Determine whether the user can update the model.
Methods
moderate()
Determine whether the user can view any models.
public
moderate(User $user) : bool
Parameters
- $user : User
Return values
boolupdate()
Determine whether the user can update the model.
public
update(User $user, Package $package, array<string, mixed> $params) : bool
Parameters
- $user : User
- $package : Package
- $params : array<string, mixed>