File "VariationPermissionsSeeder.php"

Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/database/seeders/VariationPermissionsSeeder.php
File size: 1.35 KB
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Database\Seeders;

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

class VariationPermissionsSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = [
            [
                'id'    => 96,
                'title' => 'variation_create',
                'created_at' => new \DateTime,
                'updated_at' => new \DateTime,
            ],
            [
                'id'    => 97,
                'title' => 'variation_edit',
                'created_at' => new \DateTime,
                'updated_at' => new \DateTime,
            ],
            [
                'id'    => 98,
                'title' => 'variation_show',
                'created_at' => new \DateTime,
                'updated_at' => new \DateTime,
            ],
            [
                'id'    => 99,
                'title' => 'variation_delete',
                'created_at' => new \DateTime,
                'updated_at' => new \DateTime,
            ],
            [
                'id'    => 100,
                'title' => 'variation_access',
                'created_at' => new \DateTime,
                'updated_at' => new \DateTime,
            ],
        ];

        Permission::insert($data);
    }
}