<?php

namespace Database\Seeders;

use App\Models\City;
use App\Models\Region;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class CitySeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $region = Region::create([
            'name' => [
                'ar' => 'الرياض',
                'en' => 'Riyadh'
            ],
        ]);

        $region->cities()->create([
            'name' => [
                'ar' => 'الرياض',
                'en' => 'Riyadh'
            ],
        ]);
    }
}
