<?php

namespace Database\Seeders;

use App\Models\Website\GalleryType;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class GalleryTypeTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // if (\App::environment('local')) {
        //     GalleryType::truncate();
        // }
        $Types=[
            ['type_of_gallery'  => 'Photo Gallery',
             'Status'           => '1',
             'company_id'       =>  1,
            ],
            ['type_of_gallery'  => 'Press Gallery',
            'Status'           => '1',
            'company_id'       =>  1,
            ]
        ];
        foreach ($Types as $data) {
            GalleryType::firstOrCreate(
                ['type_of_gallery' => $data['type_of_gallery']],
                $data
            );
        }
    }
}
