Свойство | Тип | Описание | |
---|---|---|---|
$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. |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
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 | |
Результат |
protected addExtensions ( |
||
$validator |
public getPresenceVerifier ( ) : Overtrue\Validation\PresenceVerifierInterface | ||
Результат | Overtrue\Validation\PresenceVerifierInterface |
public getTranslator ( ) : Overtrue\Validation\TranslatorInterface | ||
Результат | Overtrue\Validation\TranslatorInterface |
public setPresenceVerifier ( Overtrue\Validation\PresenceVerifierInterface $presenceVerifier ) | ||
$presenceVerifier | Overtrue\Validation\PresenceVerifierInterface |
protected array $extensions | ||
Результат | array |
protected array $fallbackMessages | ||
Результат | array |
protected array $implicitExtensions | ||
Результат | array |
protected array $replacers | ||
Результат | array |
protected Closure $resolver | ||
Результат | Closure |
protected TranslatorInterface,Overtrue\Validation $translator | ||
Результат | Overtrue\Validation\TranslatorInterface |