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