<?php

namespace Database\Factories;

use App\Enums\MenuLocation;
use App\Enums\MenuType;
use App\Models\Menu;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<Menu>
 */
class MenuFactory extends Factory
{
    /**
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'location' => fake()->randomElement(MenuLocation::cases()),
            'label' => fake()->words(2, true),
            'url' => '/'.fake()->slug(2),
            'type' => MenuType::Link,
            'parent_id' => null,
            'order' => fake()->numberBetween(0, 10),
            'is_active' => true,
        ];
    }
}
