Model
Less than 1 minute
Model
Methods
create
Create a new user record.
public create(string $identity, string $credential, array $data = []): bool
Parameters
Parameter | Type | Description |
---|---|---|
$identity | string | The user identity/username |
$credential | string | The user credential/password |
$data | array | Additional data to store with the user record |
update
Update a user record.
public update(string $identity, ?string $credential, array $data = []): bool
Use this method to set the user's password and/or update any additional data stored with the user record.
Parameters
Parameter | Type | Description |
---|---|---|
$identity | string | The user identity/username |
$credential | string | |
$data | array | The data to update |
delete
Delete a user record.
public delete(string $identity): bool
Parameters
Parameter | Type | Description |
---|---|---|
$identity | string | The user identity/username |
Generated by Hazaar API Doc Generator