original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Get validation messages.
  
  @param array $input
  
  @return MessageBag|bool
docstring_tokens: Get validation messages .