class GroupRepository

Methods

Group>
query()

<p>Get a new query builder for the groups table.</p>

findOrFail(int $id, User $actor = null)

<p>Find a user by ID, optionally making sure it is visible to a certain user, or throw an exception.</p>

queryVisibleTo(User|null $actor = null)

No description

Group>
scopeVisibleTo(Builder $query, User|null $actor = null)

<p>Scope a query to only include records that are visible to a user.</p>

Details

Group> query()

<p>Get a new query builder for the groups table.</p>

Return Value

Group>

Group findOrFail(int $id, User $actor = null)

<p>Find a user by ID, optionally making sure it is visible to a certain user, or throw an exception.</p>

Parameters

int $id
User $actor

Return Value

Group

Exceptions

ModelNotFoundException

queryVisibleTo(User|null $actor = null)

Parameters

User|null $actor

protected Group> scopeVisibleTo(Builder $query, User|null $actor = null)

<p>Scope a query to only include records that are visible to a user.</p>

Parameters

Builder $query
User|null $actor

Return Value

Group>