class UserRepository
Methods
Find a user by ID, optionally making sure it is visible to a certain user, or throw an exception.
Find a user by username, optionally making sure it is visible to a certain user, or throw an exception.
Find a user by an identification (username or email).
Find users by matching a string of words against their username, optionally making sure they are visible to a certain user.
Details
at
line 23
Builder
query()
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).
at
line 73
Model|null
findByEmail(string $email)
at
line 78
int|null
getIdForUsername(string $username, User|null $actor = null)
at
line 85
array
getIdsForUsernames(array $usernames, User|null $actor = null)
at
line 96
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.