ldc-legaulois/database/factories/HistoricalMilestoneFactory.php
2024-07-23 14:57:35 +02:00

28 lines
764 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()
{
return [
'year' => fake()->randomFloat(1, 1900, 2100),
'title' => fake()->words(rand(1, 2), true),
'description' => fake()->sentence(),
'picture_alt' => fake()->sentence(),
'picture_title' => fake()->sentence(),
'video_id' => null,
'picture_alt' => null,
'picture_title' => null,
'published' => fake()->boolean(75),
];
}
}