<?php

namespace Database\Seeders;

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

class AreaSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $areas[0] = [
            'address'        => 'Jaipur',
            'is_active'      => 1,
            'created_by'     => config('constant.roles.super_admin'),
            'created_at'     => date('Y-m-d H:i:s'),
            'updated_at'     => date('Y-m-d H:i:s'),
        ];

        foreach($areas as $key=>$area){
            $createdArea =  Area::create($area);
        }
    }
}
