Factory
class Factory implements Factory (View source)
Methods
| 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 | validate(array $data, array $rules, array $messages = array(), array $customAttributes = array()) Validate the given data against the provided rules. | |
| 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. |
Please login to continue.