v4.2.1: Confirmed rule and bug fixes
- Improvement: New
confirmedrule 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