source: database/seeders/RolesPermissionsTableSeeder.php@ 9012e81

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

bug fixes

  • Property mode set to 100644
File size: 2.1 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 ["role_id" => 1, "permission_id" => 13],
31 ["role_id" => 1, "permission_id" => 14],
32 ["role_id" => 1, "permission_id" => 15],
33 ["role_id" => 1, "permission_id" => 16],
34 ["role_id" => 1, "permission_id" => 17],
35
36 // Referent
37 ["role_id" => 2, "permission_id" => 1],
38 ["role_id" => 2, "permission_id" => 3],
39 ["role_id" => 2, "permission_id" => 4],
40 ["role_id" => 2, "permission_id" => 5],
41 ["role_id" => 2, "permission_id" => 6],
42 ["role_id" => 2, "permission_id" => 7],
43 ["role_id" => 2, "permission_id" => 8],
44 ["role_id" => 2, "permission_id" => 9],
45 ["role_id" => 2, "permission_id" => 10],
46 ["role_id" => 2, "permission_id" => 11],
47 ["role_id" => 2, "permission_id" => 13],
48 ["role_id" => 2, "permission_id" => 14],
49 ["role_id" => 2, "permission_id" => 15],
50 ["role_id" => 2, "permission_id" => 17],
51
52 // Viewer
53 ["role_id" => 3, "permission_id" => 5],
54 ["role_id" => 3, "permission_id" => 6],
55 ["role_id" => 3, "permission_id" => 11]
56 ]);
57 }
58}
Note: See TracBrowser for help on using the repository browser.