code: public function errors()
      {
          $messages = [];
  
          foreach ($this->errors as $rule => $items) {
              foreach ($items as $item) {
                  $field = $item['field'];
  
                  $message = $this->fetchMessage($field, $rule);
  
                  // If there is any alias for the current field, swap it.
                  if (isset($this->fieldAliases[$field])) {
                      $item['field'] = $this->fieldAliases[$field];
                  }
  
                  $messages[$field][] = $this->replaceMessageFormat($message, $item);
              }
          }
  
          return new MessageBag($messages);
      }
docs: Gather errors, format them and return them.
  
  @return array