File "StockLocationPermissionSeeder.php"
Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/database/seeders/StockLocationPermissionSeeder.php
File size: 1.38 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 StockLocationPermissionSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$data = [
[
'id' => 101,
'title' => 'stock_location_create',
'created_at' => new \DateTime,
'updated_at' => new \DateTime,
],
[
'id' => 102,
'title' => 'stock_location_edit',
'created_at' => new \DateTime,
'updated_at' => new \DateTime,
],
[
'id' => 103,
'title' => 'stock_location_show',
'created_at' => new \DateTime,
'updated_at' => new \DateTime,
],
[
'id' => 104,
'title' => 'stock_location_delete',
'created_at' => new \DateTime,
'updated_at' => new \DateTime,
],
[
'id' => 105,
'title' => 'stock_location_access',
'created_at' => new \DateTime,
'updated_at' => new \DateTime,
],
];
Permission::insert($data);
}
}