23 lines
469 B
PHP
23 lines
469 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Question;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<Question>
|
|
*/
|
|
class QuestionFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'quiz_id' => QuizFactory::new(),
|
|
'concept_id' => ConceptFactory::new(),
|
|
'body' => fake()->sentence().'؟',
|
|
'explanation' => fake()->paragraph(),
|
|
];
|
|
}
|
|
}
|