| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 13 |
| Ratio | 108.33 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | View Code Duplication | private function linkRolesAndPermissions() |
|
| 41 | { |
||
| 42 | // Truncate the table each time. |
||
| 43 | DB::statement('SET FOREIGN_KEY_CHECKS=0;'); |
||
| 44 | DB::table('acl_permission_role')->truncate(); |
||
| 45 | DB::statement('SET FOREIGN_KEY_CHECKS=1;'); |
||
| 46 | |||
| 47 | $permissions = config('users.permission_role'); |
||
| 48 | |||
| 49 | // Add any data to the table. |
||
| 50 | DB::table('acl_permission_role')->insert($permissions); |
||
| 51 | } |
||
| 52 | } |
||
| 53 |