<?php

namespace Database\Seeders;

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

class EWayBillApisTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $EWayBillApi = [
            [
                'base_url'      => 'https://api.mastergst.com',
                'email'         => 'metamintindia@gmail.com',
                'user_name'     => '05AAACH6188F1ZM',
                'password'      => 'abc123@@',
                'client_id'     => 'b07dc725-db71-4d91-9d1f-aed94d820e15',
                'client_secret' => '18c0ca94-a435-4273-9723-7758bf1e6d95',
                'gstin'         => '05AAACH6188F1ZM',
                'company_id'    => 1,
                'status'        => 1,
            ]
        ];

        foreach ($EWayBillApi as $data) {
            EWayBillApi::firstOrCreate(
                ['user_name' => $data['user_name']],
                $data
            );
        }
    }
}
