protected function validateByBaseValidator(Validation $validation, array $input, array $baseRules, AppliesToResource $resource=null, $locale=null)
    {
        $laravelRules = $this->toLaravelRules($baseRules);

        $illuminateValidator = $this->buildValidator($input, $laravelRules);

        if (!$illuminateValidator->fails()) {
            return;
        }

        foreach ($illuminateValidator->failed() as $key=>$fails) {
            foreach ($fails as $ruleName=>$parameters) {
                $validation->addFailure($key, Type::snake_case($ruleName), $parameters);
            }
        }
    }
protected function validateByBaseValidator(Validation $validation, array $input, array $baseRules, AppliesToResource $resource=null, $locale=null)
    {
        $laravelRules = $this->toLaravelRules($baseRules);

        $illuminateValidator = $this->buildValidator($input, $laravelRules);

        if (!$illuminateValidator->fails()) {
            return;
        }

        foreach ($illuminateValidator->failed() as $key=>$fails) {
            foreach ($fails as $ruleName=>$parameters) {
                $validation->addFailure($key, Type::snake_case($ruleName), $parameters);
            }
        }
    }
protected function validateByBaseValidator ( Validation $ validation , array $ input , array $ baseRules , AppliesToResource $ resource = null , $ locale = null ) { $ laravelRules = $ this -> toLaravelRules ( $ baseRules ) ; $ illuminateValidator = $ this -> buildValidator ( $ input , $ laravelRules ) ; if ( ! $ illuminateValidator -> fails ( ) ) { return ; } foreach ( $ illuminateValidator -> failed ( ) as $ key => $ fails ) { foreach ( $ fails as $ ruleName => $ parameters ) { $ validation -> addFailure ( $ key , Type :: snake_case ( $ ruleName ) , $ parameters ) ; } } }
Perform all validation by the the base validator

@param Validation        $validation
@param array             $input
@param array             $baseRules
@param AppliesToResource $resource (optional)
@param string            $locale (optional)
Perform all validation by the the base validator