25 lines
680 B
PHP
25 lines
680 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Enums\Approaches\ApproachTypeEnum;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class ApproachFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'type' => fake()->boolean(50) ? ApproachTypeEnum::label : ApproachTypeEnum::demarche,
|
|
'name' => fake()->words(3, true),
|
|
'picture_title' => fake()->words(5, true),
|
|
'picture_alt' => fake()->words(8, true),
|
|
'published' => fake()->boolean(75),
|
|
];
|
|
}
|
|
}
|