ldc-legaulois/database/factories/VideoFactory.php

25 lines
573 B
PHP
Raw Permalink Normal View History

2024-04-30 11:57:43 +02:00
<?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
2024-04-30 11:57:43 +02:00
{
return [
'title' => fake()->unique()->words(rand(1, 2), true),
2024-04-30 11:57:43 +02:00
'video_id' => '7rpgfetac0U',
'order' => 1,
2024-04-30 11:57:43 +02:00
'is_on_homepage' => fake()->boolean(25),
'published' => fake()->boolean(75),
];
}
}