Upgrade Guide

  • If you have extended the rule using the static method extend in the validator, change it to a class method with rule + initial capitalization of the rule name,Usage view Use class method
  • If you use the static method replacer in the validator to modify the message of this validator, please put it in the ruleMessage class property
  • If you use the static method extendImplicit in the validator to extend the implicit rule, use $this->extendImplicitRule
  • If you use the static method extendDependent in the validator to extend the dependency rule, use $this->extendDependentRule
  • If you use the field name reference @{attribute} in the error message, please change the format to {@attribute}
  • If you use the Bail, Password rule or set the bail class attribute, please delete
  • Please pay attention to the operations that use Alpha,AlphaDash,AlphaNum.
  • If your validator uses the exclusion parameter in the Unique rule, please note that in the new version parameter 2 is a field and parameter 3 is a value
  • If your validator uses Unique,Exists rules and uses the Model namespace, please replace it with the table name