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