<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class CategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $categories = [
            ['name' => 'Handphone', 'description' => 'Produk handphone baru dan bekas'],
            ['name' => 'Aksesoris HP', 'description' => 'Aksesoris handphone seperti case, charger, dll'],
            ['name' => 'Sparepart', 'description' => 'Sparepart handphone'],
            ['name' => 'Pulsa & Paket Data', 'description' => 'Produk digital pulsa dan paket data'],
        ];

        foreach ($categories as $category) {
            \App\Models\Category::create($category);
        }
    }
}
