TypePolicy
in package
Uses
HasPolicyTrait
Class TypePolicy.
Tags
Table of Contents
Properties
- $type : string
Methods
- __call() : bool
- delete() : bool
- update() : bool
- viewOnProfilePage() : bool
Properties
$type
protected
string
$type
= 'activity_type'
Methods
__call()
public
__call(string $ability, array<string|int, mixed> $arguments) : bool
Parameters
- $ability : string
- $arguments : array<string|int, mixed>
Return values
booldelete()
public
delete(User $user, Type $type) : bool
Parameters
Return values
boolupdate()
public
update(User $user, Type $type) : bool
Parameters
Return values
boolviewOnProfilePage()
public
viewOnProfilePage(User $user, User $owner) : bool