public function validationMessages($input)
    {
        $failedValidators = [];

        /** @var Field $field */
        foreach ($this->builder->fields() as $field) {
            if (!$validator = $field->getValidator($input)) {
                continue;
            }

            if (($validator instanceof Validator) && !$validator->passes()) {
                $failedValidators[] = $validator;
            }
        }

        $message = $this->mergeValidationMessages($failedValidators);

        return $message->any() ? $message : false;
    }
public function validationMessages($input)
    {
        $failedValidators = [];

        /** @var Field $field */
        foreach ($this->builder->fields() as $field) {
            if (!$validator = $field->getValidator($input)) {
                continue;
            }

            if (($validator instanceof Validator) && !$validator->passes()) {
                $failedValidators[] = $validator;
            }
        }

        $message = $this->mergeValidationMessages($failedValidators);

        return $message->any() ? $message : false;
    }
public function validationMessages ( $ input ) { $ failedValidators = [ ] ; /** @var Field $field */ foreach ( $ this -> builder -> fields ( ) as $ field ) { if ( ! $ validator = $ field -> getValidator ( $ input ) ) { continue ; } if ( ( $ validator instanceof Validator ) && ! $ validator -> passes ( ) ) { $ failedValidators [ ] = $ validator ; } } $ message = $ this -> mergeValidationMessages ( $ failedValidators ) ; return $ message -> any ( ) ? $ message : false ; }
Get validation messages.

@param array $input

@return MessageBag|bool
Get validation messages .