21 lines
380 B
PHP
21 lines
380 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Concept;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<Concept>
|
|
*/
|
|
class ConceptFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'subject_id' => SubjectFactory::new(),
|
|
'name' => fake()->unique()->words(2, true),
|
|
];
|
|
}
|
|
}
|