class GroupRepository

Methods

Group>
query()

Get a new query builder for the groups table.

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

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

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

Scope a query to only include records that are visible to a user.

Details

Group> query()

Get a new query builder for the groups table.

Return Value

Group>

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

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

Parameters

int $id
User $actor

Return Value

Group

Exceptions

ModelNotFoundException

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

Scope a query to only include records that are visible to a user.

Parameters

Builder $query
User $actor

Return Value

Group>