diff --git a/docs/advanced-usage/validation-attributes.md b/docs/advanced-usage/validation-attributes.md index fce9920b..5d4ea440 100644 --- a/docs/advanced-usage/validation-attributes.md +++ b/docs/advanced-usage/validation-attributes.md @@ -301,16 +301,18 @@ public string $value; [Docs](https://laravel.com/docs/9.x/validation#rule-email) ```php +use Spatie\LaravelData\Attributes\Validation\Email; + #[Email] public string $value; #[Email(Email::RfcValidation)] public string $value; -#[Email([Distinct::RfcValidation, Distinct::DnsCheckValidation])] +#[Email([Email::RfcValidation, Email::DnsCheckValidation])] public string $value; -#[Email(Distinct::RfcValidation, Distinct::DnsCheckValidation)] +#[Email(Email::RfcValidation, Email::DnsCheckValidation)] public string $value; ```