<?php

namespace Database\Seeders;

use App\Models\Category;
use App\Models\Slider;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class SliderSeed extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        if (Slider::count() == 0) {
            Slider::create([
                'link_ar' => 'https://www.google.com/',
                'link_en' => 'https://www.google.com/',
                'image' => 'slider.png',
                'status'=>1,
                'admin_id'=>1

            ]);
            Slider::create([
                'link_ar' => 'https://www.google.com/',
                'link_en' => 'https://www.google.com/',
                'image' => 'slider2.png',
                'status'=>1,
                'admin_id'=>1

            ]);

            Slider::create([
                'link_ar' => 'https://www.google.com/',
                'link_en' => 'https://www.google.com/',
                'image' => 'slider3.png',
                'status'=>1,
                'admin_id'=>1

            ]);

        }

    }
}
