edms2023/database/seeds/PermissionsSeeder.php

29 lines
1.6 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
use Illuminate\Database\Seeder;
class PermissionsSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('permissions')->insert([
['name' => 'Register Incoming Document', 'description' => 'Register Incoming Document', 'created_at' => now()],
['name' => 'Register Outgoing Document without Workflow', 'description' => 'Register Outgoing Document without Workflow', 'created_at' => now()],
['name' => 'Upload Scanned version of Outgoing Document', 'description' => 'Upload Scanned version of Outgoing Document (Final Approved)', 'created_at' => now()],
['name' => 'Add Contact', 'description' => 'Add Contact', 'created_at' => now()],
['name' => 'Edit Contact', 'description' => 'Edit Contact', 'created_at' => now()],
['name' => 'Delete Contact', 'description' => 'Delete Contact', 'created_at' => now()],
['name' => 'Approve Contact', 'description' => 'Approve Contact', 'created_at' => now()],
['name' => 'Outgoing Document Workflow Final Approval', 'description' => 'Outgoing Workflow(Outgoing Document) Final Approval', 'created_at' => now()],
['name' => 'Manage Share Folders', 'description' => 'Create Share Folder in Shared Folders (and give access rights to users or Departments)', 'created_at' => now()],
['name' => 'Add Related Document', 'description' => 'NULL', 'created_at' => now()],
['name' => 'Remove/Edit Related Document', 'description' => 'NULL', 'created_at' => now()],
]);
}
}