class UserRepository
Methods
findOrFail(int|string $id, User|null $actor = null)
Find a user by ID, optionally making sure it is visible to a certain user, or throw an exception.
findOrFailByUsername(string $username, User|null $actor = null)
Find a user by username, optionally making sure it is visible to a certain user, or throw an exception.
Model|null
findByIdentification(string $identification)
Find a user by an identification (username or email).
array
getIdsForUsername(string $string, User|null $actor = null)
Find users by matching a string of words against their username, optionally making sure they are visible to a certain user.
Details
at
line 36
Model
findOrFail(int|string $id, User|null $actor = null)
Find a user by ID, optionally making sure it is visible to a certain user, or throw an exception.
at
line 51
Model
findOrFailByUsername(string $username, User|null $actor = null)
Find a user by username, optionally making sure it is visible to a certain user, or throw an exception.
at
line 63
Model|null
findByIdentification(string $identification)
Find a user by an identification (username or email).