<?php

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

class BondProductTypes extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        /*
         * Permission Types
         *
         */
        $Permissionitems = [
            [
                'name'        => 'Gangsaw',
            ],
            [
                'name'        => 'Marble-Cutter',
            ],
            [
                'name'        => 'Ganite-Cutter',
            ],
            [
                'name'        => 'Mono Dressing',
            ]
        ];

        /*
         * Add Permission Items
         *
         */
        foreach ($Permissionitems as $Permissionitem) {
            //if ($newPermissionitem === null) {
                DB::table('bond_product_types')->insert([
                    'name' => $Permissionitem['name'],
                    'created_at' =>Carbon::now()
                ]);
            //}
        }
    }
}
