<?php

namespace Database\Seeders;

use App\Models\Platform;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

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

        $platforms = [
            ['name' => 'Super Nintendo',  'slug' => 'snes',    'short_name' => 'SNES'],
            ['name' => 'Nintendo 64',     'slug' => 'n64',     'short_name' => 'N64'],
            ['name' => 'Game Boy',        'slug' => 'gb',      'short_name' => 'GB'],
            ['name' => 'Game Boy Color',  'slug' => 'gbc',     'short_name' => 'GBC'],
            ['name' => 'Game Boy Advance','slug' => 'gba',     'short_name' => 'GBA'],
            ['name' => 'NES',             'slug' => 'nes',     'short_name' => 'NES'],
            ['name' => 'Neo Geo',         'slug' => 'neo-geo'],
            ['name' => 'PlayStation',     'slug' => 'psx',     'short_name' => 'PSX'],
        ];

        foreach ($platforms as $platform) {
            Platform::create($platform);
        }
    }
}
