original_string: public static function validationErrorsToString($messages)
      {
          if ($messages instanceof MessageBag) {
              $messages = $messages->getMessages();
          }
  
          $errorString = '';
  
          if (is_array($messages)) {
              foreach ($messages as $field => $errors) {
                  foreach ($errors as $error) {
                      $errorString .= ' ' . $error;
                  }
              }
          }
  
          return $errorString;
      }
code: public static function validationErrorsToString($messages)
      {
          if ($messages instanceof MessageBag) {
              $messages = $messages->getMessages();
          }
  
          $errorString = '';
  
          if (is_array($messages)) {
              foreach ($messages as $field => $errors) {
                  foreach ($errors as $error) {
                      $errorString .= ' ' . $error;
                  }
              }
          }
  
          return $errorString;
      }
code_tokens: public static function validationErrorsToString ( $ messages ) { if ( $ messages instanceof MessageBag ) { $ messages = $ messages -> getMessages ( ) ; } $ errorString = '' ; if ( is_array ( $ messages ) ) { foreach ( $ messages as $ field => $ errors ) { foreach ( $ errors as $ error ) { $ errorString .= ' ' . $ error ; } } } return $ errorString ; }
docstring: Converts validation errors to plain string.
  
  @param $messages
  
  @return string
docstring_tokens: Converts validation errors to plain string .