33 lines
1,017 B
PHP
33 lines
1,017 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()->year(),
|
||
|
|
'text' => fake()->sentence(),
|
||
|
|
'picture1_alt' => fake()->sentence(),
|
||
|
|
'picture1_title' => fake()->sentence(),
|
||
|
|
'picture2_alt' => fake()->sentence(),
|
||
|
|
'picture2_title' => fake()->sentence(),
|
||
|
|
'picture3_alt' => fake()->sentence(),
|
||
|
|
'picture3_title' => fake()->sentence(),
|
||
|
|
'button_status' => fake()->boolean(75),
|
||
|
|
'button_label' => fake()->text(35),
|
||
|
|
'button_url' => 'https://www.youtube.com/watch?v=6B4O-_1CQoI',
|
||
|
|
'button_new_tab' => fake()->boolean(75),
|
||
|
|
'published' => fake()->boolean(75),
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|