Skip to content

3.0.0

Choose a tag to compare

@EnrickyHip EnrickyHip released this 03 Jul 12:39
· 2 commits to main since this release
  • Separate common methods between FieldValidator and ArrayValidator in a trait;
  • Change ArrayValidator parent from FieldValidator to Validator;
  • Rename RequestValidator::requireOr() parameter $validators to $fields and allow receiving an array of string with the name of the field instead of the validators;
  • Allow instanciate RequestValidator to add rules directly, without need to create a separate class;
  • Remove need to return array of validators on RequestValidatot::rules();
  • Random bug fixes.