ldc-legaulois/database/factories/ApproachFactory.php
2024-04-19 11:37:53 +02:00

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),
];
}
}