<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class PrabhagSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $prabhags = [
            'Prabhag 1',
            'Prabhag 2',
            'Prabhag 3',
            'Prabhag 4',
            'Prabhag 5',
            'Prabhag 6',
        ];

        foreach ($prabhags as $name) {
            DB::table('prabhag')->updateOrInsert(
                ['name' => $name],
                [
                    'status' => 1,
                    'updated_at' => now(),
                    'created_at' => now(),
                ]
            );
        }
    }
}
