class ScopeModelVisibility

The ScopeModelVisibility event allows constraints to be applied in a query to fetch a model, effectively scoping that model's visibility to the user.

Properties

Builder $query
User $actor
string $ability

Methods

__construct(Builder $query, User $actor, string $ability)

No description

Details

__construct(Builder $query, User $actor, string $ability)

Parameters

Builder $query
User $actor
string $ability