aboutsummaryrefslogtreecommitdiffstats
path: root/database/factories/GroupFactory.php
blob: 221cdd2a5d7e208298059b78ecd5174ccc0cb18f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

namespace Database\Factories;

use App\Models\Group;
use App\Models\Teacher;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Group>
 */
class GroupFactory extends Factory
{
    protected $model = Group::class;

    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'name' => fake()->randomElement(['Class A', 'Class B', 'Class C', 'Class D']) . ' - ' . fake()->word(),
            /* 'teacher_id' => Teacher::factory(), */
        ];
    }
}