source: database/seeders/RolesPermissionsTableSeeder.php@ b9c4a92

develop
Last change on this file since b9c4a92 was d795fa6, checked in by Berat Kjufliju <kufliju@…>, 3 years ago

added validation to blades

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[7304c7f]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 {
[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],
[194a359]29
30 // Referent
[24a616f]31 ["role_id" => 2, "permission_id" => 3],
32 ["role_id" => 2, "permission_id" => 4],
33 ["role_id" => 2, "permission_id" => 5],
34 ["role_id" => 2, "permission_id" => 6],
35 ["role_id" => 2, "permission_id" => 7],
36 ["role_id" => 2, "permission_id" => 8],
37 ["role_id" => 2, "permission_id" => 9],
38 ["role_id" => 2, "permission_id" => 10],
[d795fa6]39 ["role_id" => 2, "permission_id" => 11],
[24a616f]40
41 // Viewer
42 ["role_id" => 3, "permission_id" => 5],
43 ["role_id" => 3, "permission_id" => 6],
[194a359]44 ]);
[7304c7f]45 }
46}
Note: See TracBrowser for help on using the repository browser.