class UserRepository
Methods
<p>Find a user by ID, optionally making sure it is visible to a certain user, or throw an exception.</p>
<p>Find a user by username, optionally making sure it is visible to a certain user, or throw an exception.</p>
<p>Find a user by an identification (username or email).</p>
<p>Get the ID of a user with the given username.</p>
<p>Find users by matching a string of words against their username, optionally making sure they are visible to a certain user.</p>
<p>Scope a query to only include records that are visible to a user.</p>
Details
at
line 21
User>
query()
<p>Get a new query builder for the users table.</p>
at
line 36
User
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 53
User
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 66
User|null
findByIdentification(string $identification)
<p>Find a user by an identification (username or email).</p>
at
line 91
int|null
getIdForUsername(string $username, User $actor = null)
<p>Get the ID of a user with the given username.</p>