Files
2024-11-23 22:14:01 +03:30

30 lines
767 B
PHP
Executable File

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Input>
*/
class InputFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
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,
];
}
}