Property | Type | Description | |
---|---|---|---|
$extensions | array | All of the custom validator extensions. | |
$fallbackMessages | array | All of the fallback messages for custom rules. | |
$implicitExtensions | array | All of the custom implicit validator extensions. | |
$replacers | array | All of the custom validator message replacers. | |
$resolver | Closure | The Validator resolver instance. | |
$translator | Overtrue\Validation\TranslatorInterface | The Translator implementation. | |
$verifier | Overtrue\Validation\PresenceVerifierInterface | The Presence Verifier implementation. |
Method | Description | |
---|---|---|
__construct ( Overtrue\Validation\TranslatorInterface $translator = null ) : |
Create a new Validator factory instance. | |
extend ( string $rule, Closure | string $extension, string $message = null ) | Register a custom validator extension. | |
extendImplicit ( string $rule, Closure | string $extension, string $message = null ) | Register a custom implicit validator extension. | |
getPresenceVerifier ( ) : Overtrue\Validation\PresenceVerifierInterface | Get the Presence Verifier implementation. | |
getTranslator ( ) : Overtrue\Validation\TranslatorInterface | Get the Translator implementation. | |
make ( array $data, array $rules, array $messages = [], array $customAttributes = [] ) : |
Create a new Validator instance. | |
replacer ( string $rule, Closure | string $replacer ) | Register a custom implicit validator message replacer. | |
resolver ( Closure $resolver ) | Set the Validator instance resolver. | |
setPresenceVerifier ( Overtrue\Validation\PresenceVerifierInterface $presenceVerifier ) | Set the Presence Verifier implementation. |
Method | Description | |
---|---|---|
addExtensions ( |
Add the extensions to a validator instance. | |
resolve ( array $data, array $rules, array $messages, array $customAttributes ) : |
Resolve a new Validator instance. |
public __construct ( Overtrue\Validation\TranslatorInterface $translator = null ) : |
||
$translator | Overtrue\Validation\TranslatorInterface | |
return |
protected addExtensions ( |
||
$validator |
public getPresenceVerifier ( ) : Overtrue\Validation\PresenceVerifierInterface | ||
return | Overtrue\Validation\PresenceVerifierInterface |
public getTranslator ( ) : Overtrue\Validation\TranslatorInterface | ||
return | Overtrue\Validation\TranslatorInterface |
public setPresenceVerifier ( Overtrue\Validation\PresenceVerifierInterface $presenceVerifier ) | ||
$presenceVerifier | Overtrue\Validation\PresenceVerifierInterface |
protected array $extensions | ||
return | array |
protected array $fallbackMessages | ||
return | array |
protected array $implicitExtensions | ||
return | array |
protected array $replacers | ||
return | array |
protected Closure $resolver | ||
return | Closure |
protected TranslatorInterface,Overtrue\Validation $translator | ||
return | Overtrue\Validation\TranslatorInterface |