protected function setErrorLengthRange($field, $label, $min = 1, $max = 255)
    {
        $vars = array('@min' => $min, '@max' => $max, '@field' => $label);
        $error = $this->translation->text('@field must be @min - @max characters long', $vars);
        return $this->setError($field, $error);
    }
protected function setErrorLengthRange($field, $label, $min = 1, $max = 255)
    {
        $vars = array('@min' => $min, '@max' => $max, '@field' => $label);
        $error = $this->translation->text('@field must be @min - @max characters long', $vars);
        return $this->setError($field, $error);
    }
protected function setErrorLengthRange ( $ field , $ label , $ min = 1 , $ max = 255 ) { $ vars = array ( '@min' => $ min , '@max' => $ max , '@field' => $ label ) ; $ error = $ this -> translation -> text ( '@field must be @min - @max characters long' , $ vars ) ; return $ this -> setError ( $ field , $ error ) ; }
Set "Length must be between min and max" error
@param string $field
@param string $label
@param int $min
@param int $max
@return array
Set Length must be between min and max error