We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf5197f commit 9af59ecCopy full SHA for 9af59ec
lib/rules.js
@@ -176,6 +176,20 @@ class Rules extends Mix {
176
177
}
178
179
+ async validateSometimes(field, value, args) {
180
+
181
+ if (this.isEmpty(value) && !args.length) {
182
+ delete this.validator.inputs[field];
183
+ return true;
184
+ }
185
186
+ if (args.length) {
187
+ // to be coded
188
189
190
191
192
193
/**
194
* apply rules on inputs
195
* @param field
0 commit comments