Skip to content

v4.2.1: Confirmed rule and bug fixes

Choose a tag to compare

@craigrileyuk craigrileyuk released this 31 Aug 01:39
· 2 commits to main since this release
046aafa
  • Improvement: New confirmed rule is now available
protected $rules = [
    'password' => ['required','confirmed']
];

This will automatically look for a matching field called password_confirmation. If you want to change the confirmation field name, pass it as an argument:

protected $rules = [
    'password' => ['required','confirmed:repeat_password']
];
  • BugFix: Rule arguments incorrectly parsed when none passed