$user->changeSecret()
Stores secrets for the user
$user->changeSecret(string $secret, mixed $content): User
Parameters
| Name | Type | Default |
|---|---|---|
| $secretrequired | string |
no default value |
| $contentrequired | mixed |
no default value |
Return type
This method does not modify the existing $user object but returns a new object with the changes applied. Learn more →