class Factory implements Factory (View source)
void | __construct( TranslatorInterface $translator, Container $container = null) Create a new Validator factory instance. | |
Validator | make( array $data, array $rules, array $messages = array(), array $customAttributes = array()) Create a new Validator instance. | |
void | extend( string $rule, Closure|string $extension, string $message = null) Register a custom validator extension. | |
void | extendImplicit( string $rule, Closure|string $extension, string $message = null) Register a custom implicit validator extension. | |
void | replacer( string $rule, Closure|string $replacer) Register a custom implicit validator message replacer. | |
void | resolver( Closure $resolver) Set the Validator instance resolver. | |
TranslatorInterface | getTranslator() Get the Translator implementation. | |
PresenceVerifierInterface | getPresenceVerifier() Get the Presence Verifier implementation. | |
void | setPresenceVerifier( PresenceVerifierInterface $presenceVerifier) Set the Presence Verifier implementation. |
Create a new Validator factory instance.
Create a new Validator instance.
Register a custom validator extension.
Register a custom implicit validator extension.
Register a custom implicit validator message replacer.
Set the Validator instance resolver.
Get the Translator implementation.
Get the Presence Verifier implementation.
Set the Presence Verifier implementation.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Validation/Factory.html