This commit is contained in:
philipp lang 2024-01-10 22:14:27 +01:00
parent ae19a6ed2b
commit e005ed0d0d
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class FormFactory extends Factory
*/
public function sections(array $sections): self
{
return $this->state(['config' => ['sections' => $sections]]);
return $this->state(['config' => ['sections' => array_map(fn ($section) => $section->create(), $sections)]]);
}
/**