[7304c7f] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | namespace Database\Seeders;
|
---|
| 4 |
|
---|
| 5 | use Illuminate\Database\Seeder;
|
---|
| 6 |
|
---|
| 7 | class RolesPermissionsTableSeeder extends Seeder
|
---|
| 8 | {
|
---|
| 9 | /**
|
---|
| 10 | * Run the database seeds.
|
---|
| 11 | *
|
---|
| 12 | * @return void
|
---|
| 13 | */
|
---|
| 14 | public function run()
|
---|
| 15 | {
|
---|
[194a359] | 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],
|
---|
[24a616f] | 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],
|
---|
[d795fa6] | 28 | ["role_id" => 1, "permission_id" => 11],
|
---|
[c6b84df] | 29 | ["role_id" => 1, "permission_id" => 12],
|
---|
[0df7a93] | 30 | ["role_id" => 1, "permission_id" => 13],
|
---|
| 31 | ["role_id" => 1, "permission_id" => 14],
|
---|
| 32 | ["role_id" => 1, "permission_id" => 15],
|
---|
[9012e81] | 33 | ["role_id" => 1, "permission_id" => 16],
|
---|
[194a359] | 34 |
|
---|
[112ba6d] | 35 | // Referent
|
---|
[0df7a93] | 36 | ["role_id" => 2, "permission_id" => 1],
|
---|
[24a616f] | 37 | ["role_id" => 2, "permission_id" => 4],
|
---|
| 38 | ["role_id" => 2, "permission_id" => 5],
|
---|
| 39 | ["role_id" => 2, "permission_id" => 6],
|
---|
| 40 | ["role_id" => 2, "permission_id" => 7],
|
---|
| 41 | ["role_id" => 2, "permission_id" => 8],
|
---|
| 42 | ["role_id" => 2, "permission_id" => 9],
|
---|
| 43 | ["role_id" => 2, "permission_id" => 10],
|
---|
[d795fa6] | 44 | ["role_id" => 2, "permission_id" => 11],
|
---|
[112ba6d] | 45 | ["role_id" => 2, "permission_id" => 12],
|
---|
[0df7a93] | 46 | ["role_id" => 2, "permission_id" => 14],
|
---|
| 47 | ["role_id" => 2, "permission_id" => 15],
|
---|
[69dd35e] | 48 | ["role_id" => 2, "permission_id" => 16],
|
---|
[24a616f] | 49 |
|
---|
| 50 | // Viewer
|
---|
| 51 | ["role_id" => 3, "permission_id" => 5],
|
---|
| 52 | ["role_id" => 3, "permission_id" => 6],
|
---|
[75a169d] | 53 | ["role_id" => 3, "permission_id" => 11]
|
---|
[194a359] | 54 | ]);
|
---|
[7304c7f] | 55 | }
|
---|
| 56 | }
|
---|