 Factory   class Factory (View source)  Properties    protected TranslatorInterface  $translator The Translator implementation.     protected PresenceVerifierInterface  $verifier The Presence Verifier implementation.     protected Container  $container The IoC container instance.     protected array  $extensions All of the custom validator extensions.     protected array  $implicitExtensions All of the custom implicit validator extensions.     protected array  $replacers All of the custom validator message replacers.     protected array  $fallbackMessages All of the fallback messages for custom rules.     protected Closure  $resolver The Validator resolver instance.    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   addExtensions(Validator $validator) Add the extensions to a validator instance.      Validator   resolve(array $data, array $rules, array $messages, array $customAttributes) Resolve 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.     Details                        void
    __construct(TranslatorInterface $translator, Container $container = null)
            Create a new Validator factory instance.   Parameters   TranslatorInterface $translator    Container $container    Return Value   void         Validator
    make(array $data, array $rules, array $messages = array(), array $customAttributes = array())
            Create a new Validator instance.   Parameters   array $data    array $rules    array $messages    array $customAttributes    Return Value   Validator                      protected        void
    addExtensions(Validator $validator)
            Add the extensions to a validator instance.   Parameters   Validator $validator    Return Value   void                      protected        Validator
    resolve(array $data, array $rules, array $messages, array $customAttributes)
            Resolve a new Validator instance.   Parameters   array $data    array $rules    array $messages    array $customAttributes    Return Value   Validator                              void
    extend(string $rule, Closure|string $extension, string $message = null)
            Register a custom validator extension.   Parameters   string $rule    
Closure|string $extension    string $message    Return Value   void                              void
    extendImplicit(string $rule, Closure|string $extension, string $message = null)
            Register a custom implicit validator extension.   Parameters   string $rule    
Closure|string $extension    string $message    Return Value   void                              void
    replacer(string $rule, Closure|string $replacer)
            Register a custom implicit validator message replacer.   Parameters   string $rule    
Closure|string $replacer    Return Value   void                              void
    resolver(Closure $resolver)
            Set the Validator instance resolver.   Parameters   Closure $resolver    Return Value   void                              TranslatorInterface
    getTranslator()
            Get the Translator implementation.   Return Value   TranslatorInterface         PresenceVerifierInterface
    getPresenceVerifier()
            Get the Presence Verifier implementation.   Return Value   PresenceVerifierInterface                              void
    setPresenceVerifier(PresenceVerifierInterface $presenceVerifier)
            Set the Presence Verifier implementation.   Parameters   PresenceVerifierInterface $presenceVerifier    Return Value   void      

    
{'path': 'public/docs/laravel~4.2/api/4.2/illuminate/validation/factory.html', 'source': 'DevDocs.IO'}