code: public function getMessage($attribute, $rule)
      {
          if (is_object($rule)) {
              $rule = get_class($rule);
          }
          
          return $this->callValidator('getMessage', [$attribute, $rule]);
      }
docs: Get the validation message for an attribute and rule.
  
  @param string $attribute
  @param string $rule
  @return string