class DiscussionRepository
Methods
findOrFail(int $id, User $user = null)
Find a discussion by ID, optionally making sure it is visible to a certain user, or throw an exception.
array
getReadIdsQuery( User $user)
Get a query containing the IDs of discussions which a user has read completely.
scopeVisibleTo( Builder $query, User $user = null)
Scope a query to only include records that are visible to a user.
Details
at
line 35
Discussion
findOrFail(int $id, User $user = null)
Find a discussion by ID, optionally making sure it is visible to a certain user, or throw an exception.
at
line 50
array
getReadIds( User $user)
deprecated
deprecated
Get the IDs of discussions which a user has read completely.