Skip to content

Commit 6478b52

Browse files
committed
fixes typo
1 parent 0bd3867 commit 6478b52

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Services/Form.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public function labels(bool $labels): self
225225
public function sectionVisibility($fields, bool $hidden): self
226226
{
227227
(new Collection($fields))
228-
->each(fn ($field) => $this->section($field)->put('visiblity', false));
228+
->each(fn ($field) => $this->section($field)->put('hidden', $hidden));
229229

230230
return $this;
231231
}
@@ -236,7 +236,8 @@ public function tabVisibility($tabs, bool $hidden): self
236236

237237
$this->template->get('sections')->each(fn ($section) => $tabs->when(
238238
$tabs->contains($section->get('tab')),
239-
fn () => $section->put('hidden', $hidden)));
239+
fn () => $section->put('hidden', $hidden)
240+
));
240241

241242
return $this;
242243
}

0 commit comments

Comments
 (0)