24 lines
550 B
PHP
24 lines
550 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Lesson;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<Lesson>
|
|
*/
|
|
class LessonFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'course_id' => CourseFactory::new(),
|
|
'title' => fake()->sentence(4),
|
|
'order_index' => fake()->numberBetween(1, 100),
|
|
'video_id' => 'vid_'.fake()->unique()->uuid(),
|
|
'duration_seconds' => fake()->numberBetween(300, 3600),
|
|
];
|
|
}
|
|
}
|