blob: cba8d1e13a09d96d1f1d929878a17ad78a97d8ef (
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
29
30
31
32
33
|
<?php
namespace Database\Factories;
use App\Models\Group;
use App\Models\Lesson;
use App\Models\Teacher;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Lesson>
*/
class LessonFactory extends Factory
{
protected $model = Lesson::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'topic' => fake()->sentence(3),
'description' => fake()->paragraph(),
'teacher_id' => Teacher::factory(),
'group_id' => Group::factory(),
'scheduled_at' => fake()->dateTimeBetween('now', '+1 month'),
'duration_minutes' => fake()->randomElement([30, 45, 60, 90]),
];
}
}
|