class UserPolicy extends AbstractPolicy

Properties

protected $model {@inheritdoc}

Methods

subscribe(Dispatcher $events)

No description

bool|void
getPermission(GetPermission $event)

No description

bool|null
can(User $actor, string $ability)

No description

find(User $actor, Builder $query)

No description

Details

subscribe(Dispatcher $events)

Parameters

Dispatcher $events

bool|void getPermission(GetPermission $event)

Parameters

GetPermission $event

Return Value

bool|void

scopeModelVisibility(ScopeModelVisibility $event)

Parameters

ScopeModelVisibility $event

bool|null can(User $actor, string $ability)

Parameters

User $actor
string $ability

Return Value

bool|null

find(User $actor, Builder $query)

Parameters

User $actor
Builder $query