Method |
Description |
|
create ( mixed $credentials ) : Illuminate\Database\Eloquent\Model |
Create a new user. |
|
getAll ( ) : Illuminate\Database\Eloquent\Collection |
Get all user data. |
|
getByEmail ( string $email ) : Illuminate\Database\Eloquent\Model |
Get a user by email. |
|
getById ( integer $id ) : Illuminate\Database\Eloquent\Model |
Get a user by user id. |
|
getByUsername ( string $username ) : Illuminate\Database\Eloquent\Model |
Get a user by username. |
|
getLikeUsername ( string $username ) : Illuminate\Database\Eloquent\Model |
Get users by username like search. |
|
getOwners ( ) : Illuminate\Database\Eloquent\Model |
Get users which role is owner. |
|
getUsersToArray ( $users ) : array |
get users array |
|
updateUser ( integer $id, string $username, string $email, integer $role ) : Illuminate\Database\Eloquent\Model |
Update a user information(username, email, role). |
|