<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;

class CompanyBranchesTablesSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        if(DB::table('company_branches')->get()->count() == 0){
            DB::table('company_branches')->insert([
                'name' => 'Main',
                'city' => 'Nairobi',
                'address' => 'Anniversary Towers - Nairobi Kenya',
                'website' => 'www.minecloudsystems.com',
                'tel' => '+254719628412',
                'phone' => '+254719628412',
                'em' => 'customercare@mycloudims.net',
                'coi' => 'P0387938R',
                'created_at' => now(),
                'updated_at' => now()
            ]);
        }
    }
}
