class UserRepository
Methods
Model
findOrFail(int|string $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>
Model
findOrFailByUsername(string $username, User $actor = null)
<p>Find a user by username, optionally making sure it is visible to a certain user, or throw an exception.</p>
Model|null
findByIdentification(string $identification)
<p>Find a user by an identification (username or email).</p>
array
getIdsForUsername(string $string, User $actor = null)
<p>Find users by matching a string of words against their username, optionally making sure they are visible to a certain user.</p>
Details
at
line 23
Builder
query()
at
line 36
Model
findOrFail(int|string $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>
at
line 51
Model
findOrFailByUsername(string $username, User $actor = null)
<p>Find a user by username, optionally making sure it is visible to a certain user, or throw an exception.</p>
at
line 63
Model|null
findByIdentification(string $identification)
<p>Find a user by an identification (username or email).</p>