source: database/seeders/PermissionsTableSeeder.php@ ea7b12a

develop
Last change on this file since ea7b12a was d795fa6, checked in by Berat Kjufliju <kufliju@…>, 3 years ago

added validation to blades

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[7304c7f]1<?php
2
3namespace Database\Seeders;
4
5use Illuminate\Database\Seeder;
6
[194a359]7
8
[7304c7f]9class PermissionsTableSeeder extends Seeder
10{
11 /**
12 * Run the database seeds.
13 *
14 * @return void
15 */
16 public function run()
17 {
[194a359]18 \DB::table('permissions')->insert([
19 ["name" => "create_user"], // Create new user
[24a616f]20 ["name" => "manage_all_users"], // Access all users to manage
21 ["name" => "manage_all_departments"], // Access all departments to manage
22 ["name" => "manage_all_documents"], // Access all documents to manage
23 ["name" => "view_all_departments"], // Access all departments to view
24 ["name" => "view_all_documents"], // Access all documents to view
25 ["name" => "edit_all_documents"], // Edit all documents
26 ["name" => "edit_document"], // Edit your document/s
27 ["name" => "delete_all_documents"], // Delete all document/s
28 ["name" => "delete_document"], // Delete your document/s
[d795fa6]29 ["name" => "manage_file_types"], // Access all file_types to manage
[194a359]30 ]);
[7304c7f]31 }
32}
Note: See TracBrowser for help on using the repository browser.