<?php

namespace Database\Seeders;

use App\Models\Menu;
use App\Models\Permission;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class UserMenuSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $ikea = Menu::create([
            'name' => 'Ikea',
            'icon' => "house-chimney",
            'route_or_url' => 'root',
            'position' => 1,
            'deleteable' => false,
        ]);

        $about = $ikea->childs()->create([
            'name' => 'About',
            'route_or_url' => 'about',
            'icon' => 'circle-info',
            'position' => 1,
            'deleteable' => false,
        ]);
        
        $exchange = $ikea->childs()->create([
            'name' => 'Exchange',
            'route_or_url' => 'exchange',
            'icon' => 'circle-info',
            'position' => 2,
            'deleteable' => false,
        ]);
        
    }
}
