mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 08:01:06 +03:30
feat: add factory for models
This commit is contained in:
Executable
+26
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\InputValue>
|
||||
*/
|
||||
class InputValueFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'value' => $this->faker->word,
|
||||
'option_id' => \App\Models\Option::factory(),
|
||||
'input_id' => \App\Models\Input::factory(),
|
||||
'test_result_id' => \App\Models\TestResult::factory(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user