28 lines
660 B
PHP
28 lines
660 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\ClassSection;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<ClassSection>
|
|
*/
|
|
class ClassSectionFactory extends Factory
|
|
{
|
|
protected $model = ClassSection::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
$sectionId = fake()->numberBetween(1, 999);
|
|
|
|
return [
|
|
'class_id' => fake()->numberBetween(1, 20),
|
|
'class_section_id' => $sectionId,
|
|
'class_section_name' => (string) $sectionId.fake()->randomElement(['A', 'B', 'C']),
|
|
'semester' => 'Fall',
|
|
'school_year' => '2025-2026',
|
|
];
|
|
}
|
|
}
|