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 4dc7374 commit 28ff0dbCopy full SHA for 28ff0db
src/Kris/LaravelFormBuilder/Fields/ParentType.php
@@ -200,4 +200,21 @@ public function getValidationRules()
200
201
return $rules->append($childrenRules);
202
}
203
+
204
+ /**
205
+ * Allow form-specific value alters.
206
+ *
207
+ * @param array $values
208
+ * @return void
209
+ */
210
+ public function alterFieldValues(array &$values)
211
+ {
212
+ foreach ($this->children as $i => $child) {
213
+ if (method_exists($child, 'alterFieldValues')) {
214
+ if (isset($values[$i])) {
215
+ $child->alterFieldValues($values[$i]);
216
+ }
217
218
219
220
0 commit comments