$userValidators->validateEmail()
Validates that the email address is formatted correctly and is not used by another user yet
$userValidators->validateEmail(string $email, bool $strict = false): void
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $emailrequired | string |
no default value | |
| $strict | bool |
false
|
If true, the user itself is not ignored, which is needed for users that don't exist yet |