ldc-boutique-cnc-sable/database/factories/PickupExceptionFactory.php
2026-10-27 09:58:12 +01:00

40 lines
967 B
PHP

<?php
declare(strict_types=1);
namespace Database\Factories;
use App\Models\PickupException;
use Domain\Enums\RepeatFrequency;
use Illuminate\Database\Eloquent\Factories\Factory;
use Ramsey\Uuid\Uuid;
/**
* @extends Factory<PickupException>
*/
class PickupExceptionFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = PickupException::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'id' => (string) Uuid::uuid7(),
'date' => fake()->date(),
'label' => fake()->streetAddress(),
'repeatable' => fake()->boolean(),
'auto_updated' => false,
'repeat_frequency' => fake()->randomElement(RepeatFrequency::cases()),
];
}
}