| Conditions | 2 |
| Paths | 2 |
| Total Lines | 37 |
| Code Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function run() |
||
| 16 | { |
||
| 17 | if (! config('adminetic.migrate_with_dummy', false)) { |
||
| 18 | $roles = [ |
||
| 19 | [ |
||
| 20 | 'name' => 'superadmin', |
||
| 21 | 'description' => 'This is a super admin user', |
||
| 22 | 'level' => 5, |
||
| 23 | ], |
||
| 24 | [ |
||
| 25 | 'name' => 'admin', |
||
| 26 | 'description' => 'This is an admin user', |
||
| 27 | 'level' => 4, |
||
| 28 | ], |
||
| 29 | [ |
||
| 30 | 'name' => 'moderator', |
||
| 31 | 'description' => 'This is an moderator', |
||
| 32 | 'level' => 3, |
||
| 33 | ], |
||
| 34 | [ |
||
| 35 | 'name' => 'editor', |
||
| 36 | 'description' => 'This is an editor', |
||
| 37 | 'level' => 2, |
||
| 38 | ], |
||
| 39 | [ |
||
| 40 | 'name' => 'user', |
||
| 41 | 'description' => 'This is an normal user', |
||
| 42 | 'level' => 1, |
||
| 43 | ], |
||
| 44 | [ |
||
| 45 | 'name' => 'unverified', |
||
| 46 | 'description' => 'This is an unverified user', |
||
| 47 | 'level' => 0, |
||
| 48 | ], |
||
| 49 | ]; |
||
| 50 | |||
| 51 | DB::table('roles')->insert($roles); |
||
| 52 | } |
||
| 55 |