Свойство | Type | Description | |
---|---|---|---|
$user |
Méthode | Description | |
---|---|---|
__construct ( |
||
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, $role ) : Illuminate\Database\Eloquent\Model | Update a user information(username, email, role). |
public __construct ( |
||
$user |
public getAll ( ) : Illuminate\Database\Eloquent\Collection | ||
Résultat | Illuminate\Database\Eloquent\Collection | | Illuminate\Database\Eloquent\Builder |
public getByEmail ( string $email ) : Illuminate\Database\Eloquent\Model | ||
string | ||
Résultat | Illuminate\Database\Eloquent\Model |
public getByUsername ( string $username ) : Illuminate\Database\Eloquent\Model | ||
$username | string | |
Résultat | Illuminate\Database\Eloquent\Model |
public getLikeUsername ( string $username ) : Illuminate\Database\Eloquent\Model | ||
$username | string | |
Résultat | Illuminate\Database\Eloquent\Model |
public getOwners ( ) : Illuminate\Database\Eloquent\Model | ||
Résultat | Illuminate\Database\Eloquent\Model |
public getUsersToArray ( $users ) : array | ||
Résultat | array |