Property | Type | Description | |
---|---|---|---|
$user | |||
$validator |
Method | Description | |
---|---|---|
__construct ( App\Services\Validation\ValidableInterface $validator, App\Repositories\User\UserInterface $user ) : void | Create a new form service instance. | |
errors ( ) : array | Return validation errors. | |
regenerateApiToken ( array $input ) | ||
save ( array $input ) : boolean | Create a new user. | |
update ( array $input ) : boolean | Update an existing user. | |
updatePassword ( array $input ) : boolean | Update a password of an existing user. | |
updateRole ( array $input ) : boolean | Update a role of an existing user. |
Method | Description | |
---|---|---|
valid ( array $input ) : boolean | Test whether form validator passes. |
public __construct ( App\Services\Validation\ValidableInterface $validator, App\Repositories\User\UserInterface $user ) : void | ||
$validator | App\Services\Validation\ValidableInterface | |
$user | App\Repositories\User\UserInterface | |
return | void |
public updatePassword ( array $input ) : boolean | ||
$input | array | Data to update a user |
return | boolean |
public updateRole ( array $input ) : boolean | ||
$input | array | Data to update a user |
return | boolean |