source: database/seeders/PermissionsTableSeeder.php@ 195c3cf

develop
Last change on this file since 195c3cf was 195c3cf, checked in by beratkjufliju <kufliju@…>, 3 years ago

edited seeders

  • Property mode set to 100644
File size: 1.3 KB
Line 
1<?php
2
3namespace Database\Seeders;
4
5use Illuminate\Database\Seeder;
6
7
8
9class PermissionsTableSeeder extends Seeder
10{
11 /**
12 * Run the database seeds.
13 *
14 * @return void
15 */
16 public function run()
17 {
18 \DB::table('permissions')->insert([
19 ["id" => "1", "name" => "create_user"], // Create new user
20 ["id" => "2", "name" => "manage_all_users"], // Access all users to manage
21 ["id" => "3", "name" => "manage_all_departments"], // Access all departments to manage
22 ["id" => "4", "name" => "manage_all_folders"], // Access all folders to manage
23 ["id" => "5", "name" => "view_all_departments"], // Access all departments to view
24 ["id" => "6", "name" => "view_all_folders"], // Access all folders to view
25 ["id" => "7", "name" => "edit_all_folders"], // Edit all folders
26 ["id" => "8", "name" => "edit_folder"], // Edit your folder/s
27 ["id" => "9", "name" => "delete_all_folders"], // Delete all folder/s
28 ["id" => "10", "name" => "delete_folder"], // Delete your folder/s
29 ["id" => "11", "name" => "manage_all_files"], // Access all files
30 ["id" => "12", "name" => "manage_file_types"], // Access file types
31 ]);
32 }
33}
Note: See TracBrowser for help on using the repository browser.