<?php

namespace Database\Factories;

use App\Models\Category;
use Illuminate\Database\Eloquent\Factories\Factory;

class CategoryFactory extends Factory
{
    public function definition(): array
    {
        return [
            'name' => fake()->words(2, true),
            'slug' => fake()->unique()->slug(),
            'parent_id' => null,
            'image' => 'categories/category-' . fake()->numberBetween(1, 10) . '.jpg',
            'is_active' => true,
        ];
    }
}