diff --git a/NamedBuilderBag.php b/NamedBuilderBag.php index e808d5dd526014a1f15028cc8b4dda7322d061c6..a73f6e0613229f1aca5ae00fe687ca834e1c6843 100644 --- a/NamedBuilderBag.php +++ b/NamedBuilderBag.php @@ -111,4 +111,17 @@ class NamedBuilderBag } ); } + + /** + * {@inheritdoc} + */ + public function toArray() + { + $out = []; + foreach ($this->all() as $builder) { + $out = array_merge($out, $builder->toArray()); + } + + return $out; + } }