*/ class InputFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'name' => $this->faker->word, 'type' => $this->faker->randomElement(['Text', 'Form', 'Checkbox', 'Select']), 'test_type_id' => \App\Models\TestType::factory(), 'parent_id' => null, 'size' => $this->faker->word, 'value' => $this->faker->word, 'require_scanner' => $this->faker->boolean, ]; } }