class GroupRepository

Methods

Group>
query()

No description

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

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

Builder
queryVisibleTo(User|null $actor = null)

No description

Builder
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()

Return Value

Group>

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

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

Parameters

string|int $id
User|null $actor

Return Value

Group

Exceptions

ModelNotFoundException

Builder queryVisibleTo(User|null $actor = null)

Parameters

User|null $actor

Return Value

Builder

protected Builder 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

Builder