source: database/seeders/RolesPermissionsTableSeeder.php@ 62d01a6

Last change on this file since 62d01a6 was 190db9f, checked in by beratkjufliju <kufliju@…>, 3 years ago

edited user permissions

  • Property mode set to 100644
File size: 1.6 KB
Line 
1<?php
2
3namespace Database\Seeders;
4
5use Illuminate\Database\Seeder;
6
7class RolesPermissionsTableSeeder extends Seeder
8{
9 /**
10 * Run the database seeds.
11 *
12 * @return void
13 */
14 public function run()
15 {
16 \DB::table('roles_permissions')->insert([
17 // Admin
18 ["role_id" => 1, "permission_id" => 1],
19 ["role_id" => 1, "permission_id" => 2],
20 ["role_id" => 1, "permission_id" => 3],
21 ["role_id" => 1, "permission_id" => 4],
22 ["role_id" => 1, "permission_id" => 5],
23 ["role_id" => 1, "permission_id" => 6],
24 ["role_id" => 1, "permission_id" => 7],
25 ["role_id" => 1, "permission_id" => 8],
26 ["role_id" => 1, "permission_id" => 9],
27 ["role_id" => 1, "permission_id" => 10],
28 ["role_id" => 1, "permission_id" => 11],
29 ["role_id" => 1, "permission_id" => 12],
30
31 // Referent
32 ["role_id" => 2, "permission_id" => 1],
33 ["role_id" => 2, "permission_id" => 3],
34 ["role_id" => 2, "permission_id" => 4],
35 ["role_id" => 2, "permission_id" => 5],
36 ["role_id" => 2, "permission_id" => 6],
37 ["role_id" => 2, "permission_id" => 7],
38 ["role_id" => 2, "permission_id" => 8],
39 ["role_id" => 2, "permission_id" => 11],
40
41 // Viewer
42 ["role_id" => 3, "permission_id" => 5],
43 ["role_id" => 3, "permission_id" => 6],
44 ["role_id" => 3, "permission_id" => 7],
45 ["role_id" => 3, "permission_id" => 11],
46 ]);
47 }
48}
Note: See TracBrowser for help on using the repository browser.