source: database/seeds/RolesPermissionsTableSeeder.php

Last change on this file was d25ba66, checked in by Özkan İliyaz <iliyaz_96@…>, 4 years ago

ADD post confirmation with multiple phases, notification after succesfully password creation

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