$validate = $this->validate($pwData, [
'oldPsw' => 'require|checkPwd',
'newPsw' => 'require',
'rePsw' => 'require|confirm:newPsw',
], [
'oldPsw.require' => '原始密码不能为空',
'newPsw.captcha' => '新密码不能为空',
'rePsw.require' => '确认密码不能为空',
'rePsw.confirm' => '两次输入的密码不一致',
]);checkPwd是我的自定义验证,在哪里定义这个函数