24 lines
573 B
PHP
24 lines
573 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class VideoFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'title' => fake()->unique()->words(rand(1, 2), true),
|
|
'video_id' => '7rpgfetac0U',
|
|
'order' => 1,
|
|
'is_on_homepage' => fake()->boolean(25),
|
|
'published' => fake()->boolean(75),
|
|
];
|
|
}
|
|
}
|