[7304c7f] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | namespace Database\Seeders;
|
---|
| 4 |
|
---|
| 5 | use Illuminate\Database\Seeder;
|
---|
| 6 |
|
---|
[194a359] | 7 |
|
---|
| 8 |
|
---|
[7304c7f] | 9 | class 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([
|
---|
[0df7a93] | 19 | ["id" => "1", "name" => "view_all_users"], // Create new user
|
---|
[195c3cf] | 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
|
---|
[0df7a93] | 29 | ["id" => "11", "name" => "view_all_files"], // View all files
|
---|
[1c17e70] | 30 | ["id" => "12", "name" => "manage_all_files"], // Manage all files
|
---|
[0df7a93] | 31 | ["id" => "13", "name" => "manage_file_types"], // Access file types
|
---|
| 32 | ["id" => "14", "name" => "edit_user_data"], // Access file types
|
---|
[9012e81] | 33 | ["id" => "15", "name" => "export_data"], // Export data
|
---|
| 34 | ["id" => "16", "name" => "download_data"], // Download data
|
---|
[194a359] | 35 | ]);
|
---|
[7304c7f] | 36 | }
|
---|
| 37 | }
|
---|