trait ScopeVisibilityTrait
Properties
| static protected Builder, ?string): void>> | $visibilityScopers |
|
Methods
scopeWhereVisibleTo( Builder $query, User $actor, string $ability = 'view')
Scope a query to only include records that are visible to a user.