<?php

namespace Database\Seeders;

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

class CategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $categories = [
            ['name' => 'Updates', 'short_name' => 'Updates'],
            ['name' => 'Opinions', 'short_name' => 'Opinions'],
            ['name' => 'Features', 'short_name' => 'Features'],
            ['name' => 'New Launches', 'short_name' => 'New Launches'],
            ['name' => 'How Tos', 'short_name' => 'How Tos'],
            ['name' => 'Reviews', 'short_name' => 'Reviews'],
        ];

        foreach ($categories as $category) {
            $node = Category::create($category);
        }

    }
}
