File "ReportsPermissionSeeder.php"

Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/database/seeders/ReportsPermissionSeeder.php
File size: 1.12 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 ReportsPermissionSeeder extends Seeder
{

    public function run()
    {
        $data = [
            [
                'id'    => 113,
                'title' => 'report_sales_tax_access',
                'created_at' => new \DateTime,
                'updated_at' => new \DateTime,
            ],
            [
                'id'    => 114,
                'title' => 'report_sales_access',
                'created_at' => new \DateTime,
                'updated_at' => new \DateTime,
            ],
            [
                'id'    => 115,
                'title' => 'report_jobs_completed_access',
                'created_at' => new \DateTime,
                'updated_at' => new \DateTime,
            ],
            [
                'id'    => 116,
                'title' => 'report_year_over_year_access',
                'created_at' => new \DateTime,
                'updated_at' => new \DateTime,
            ],
        ];

        Permission::insert($data);
    }
}