Skip to content
Corex

Required

Corex\Forms\Validation\Rules\Required · class · Forms layer

Fails when the value is absent, an empty/whitespace-only string, or an empty array.

validate(mixed $value, array $params, array $allValues): ?string

Section titled “validate(mixed $value, array $params, array $allValues): ?string”