Свойство | Тип | Описание | |
---|---|---|---|
$user |
Метод | Описание | |
---|---|---|
__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 | ||
Результат | Illuminate\Database\Eloquent\Collection | | Illuminate\Database\Eloquent\Builder |
public getByEmail ( string $email ) : Illuminate\Database\Eloquent\Model | ||
string | ||
Результат | Illuminate\Database\Eloquent\Model |
public getByUsername ( string $username ) : Illuminate\Database\Eloquent\Model | ||
$username | string | |
Результат | Illuminate\Database\Eloquent\Model |
public getLikeUsername ( string $username ) : Illuminate\Database\Eloquent\Model | ||
$username | string | |
Результат | Illuminate\Database\Eloquent\Model |
public getOwners ( ) : Illuminate\Database\Eloquent\Model | ||
Результат | Illuminate\Database\Eloquent\Model |
public getUsersToArray ( $users ) : array | ||
Результат | array |