Skip to content

Commit

Permalink
~ | Doc: Form->withFieldSets() expects Fieldsets object, not a direct…
Browse files Browse the repository at this point in the history
… array
  • Loading branch information
agnonym authored and ifox committed May 15, 2023
1 parent 8331d82 commit 13701ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/1_docs/3_modules/7_form-builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 13701ad

Please sign in to comment.