ldc-legaulois/database/factories/HistoricalMilestoneFactory.php
2024-10-24 08:45:29 +00:00

31 lines
877 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class HistoricalMilestoneFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'year' => fake()->randomFloat(1, 1901, 2100),
'title' => fake()->words(rand(1, 2), true),
'description' => fake()->sentence(),
'picture' => '',
'picture_alt' => fake()->sentence(),
'picture_title' => fake()->sentence(),
'video_id' => null,
'picto' => null,
'picto_alt' => null,
'picto_title' => null,
'order' => 1,
'published' => fake()->boolean(75),
];
}
}