From 13701adef86bedf52d186b1b9febe23e9462cfef Mon Sep 17 00:00:00 2001 From: agnonym <36710878+agnonym@users.noreply.github.com> Date: Sat, 15 Apr 2023 17:34:40 +0200 Subject: [PATCH] ~ | Doc: Form->withFieldSets() expects Fieldsets object, not a direct array --- docs/content/1_docs/3_modules/7_form-builder.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/1_docs/3_modules/7_form-builder.md b/docs/content/1_docs/3_modules/7_form-builder.md index d5fe488a1..1d3056398 100644 --- a/docs/content/1_docs/3_modules/7_form-builder.md +++ b/docs/content/1_docs/3_modules/7_form-builder.md @@ -94,14 +94,14 @@ There are 2 `Form` methods that you can do this with: **withFieldSets** ```php -$form->withFieldSets([ +$form->withFieldSets(new Fieldsets([ Fieldset::make()->title('Fieldset 1')->id('fieldset')->fields([ // Field definitions come here. ]), Fieldset::make()->title('Fieldset 2')->id('fieldset')->fields([ // Field definitions come here. ]) -]); +])); ``` Or if you need more control: