*/ public function definition(): array { return [ 'name' => $this->faker->words(5, true), 'config' => ['sections' => []], ]; } /** * @param array $sections */ public function sections(array $sections): self { return $this->state(['config.sections' => $sections]); } /** * @param mixed $args */ public function __call(string $method, $args): self { return $this->state([str($method)->snake()->toString() => $args[0]]); } }