<?php

namespace Database\Seeders;

use App\Models\Category;
use Illuminate\Database\Seeder;

class NewCategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {

        $parent_categories = [
            ['name' => 'NSFW', 'emoji' => '👅', 'is_top' => true],
        ];

        foreach ($parent_categories as $item) {
            $node = Category::create([
                'name' => $item['name'],
                'slug' => str_slug($item['name']),
                'emoji' => $item['emoji'],
                'is_top' => $item['is_top'],
            ]);
        }
    }
}
