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