public function registerFieldErrorTemplate(string $field, string $ruleSlug, string $template)
    {
        if (!isset($this->fieldTemplates[$field])) {
            $this->fieldTemplates[$field] = [];
        }

        $this->fieldTemplates[$field][$ruleSlug] = $template;
    }
public function registerFieldErrorTemplate(string $field, string $ruleSlug, string $template)
    {
        if (!isset($this->fieldTemplates[$field])) {
            $this->fieldTemplates[$field] = [];
        }

        $this->fieldTemplates[$field][$ruleSlug] = $template;
    }
public function registerFieldErrorTemplate ( string $ field , string $ ruleSlug , string $ template ) { if ( ! isset ( $ this -> fieldTemplates [ $ field ] ) ) { $ this -> fieldTemplates [ $ field ] = [ ] ; } $ this -> fieldTemplates [ $ field ] [ $ ruleSlug ] = $ template ; }
Registers an error template for a specific field and rule

@param string $field The field whose template we're registering
@param string $ruleSlug The rule slug whose template we're registering
@param string $template The template to register
Registers an error template for a specific field and rule