'requireWith:password|confirm:password' ]; protected $message = [ 'confirm_password.requireWith' => '确认密码不能为空', 'confirm_password.confirm' => '密码和确认密码不一致', ]; protected $scene = [ 'putUserInfo' => ['confirm_password'] ]; }