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 0bd3867 commit 6478b52Copy full SHA for 6478b52
src/Services/Form.php
@@ -225,7 +225,7 @@ public function labels(bool $labels): self
225
public function sectionVisibility($fields, bool $hidden): self
226
{
227
(new Collection($fields))
228
- ->each(fn ($field) => $this->section($field)->put('visiblity', false));
+ ->each(fn ($field) => $this->section($field)->put('hidden', $hidden));
229
230
return $this;
231
}
@@ -236,7 +236,8 @@ public function tabVisibility($tabs, bool $hidden): self
236
237
$this->template->get('sections')->each(fn ($section) => $tabs->when(
238
$tabs->contains($section->get('tab')),
239
- fn () => $section->put('hidden', $hidden)));
+ fn () => $section->put('hidden', $hidden)
240
+ ));
241
242
243
0 commit comments