<?php

namespace Database\Factories;

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

class SliderFactory extends Factory
{
    public function definition(): array
    {
        return [
            'title' => fake()->sentence(3),
            'subtitle' => fake()->sentence(5),
            'image' => 'sliders/slider-' . fake()->numberBetween(1, 5) . '.jpg',
            'button_text' => fake()->optional()->randomElement(['Shop Now', 'Learn More', 'Buy Now']),
            'button_link' => fake()->optional()->url(),
            'order' => fake()->numberBetween(1, 10),
            'is_active' => true,
        ];
    }
}