Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 12 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
27 | View Code Duplication | private function insertRoles() |
|
28 | { |
||
29 | // Truncate the table each time. |
||
30 | DB::statement('SET FOREIGN_KEY_CHECKS=0;'); |
||
31 | DB::table('acl_roles')->truncate(); |
||
32 | DB::statement('SET FOREIGN_KEY_CHECKS=1;'); |
||
33 | |||
34 | $roles = config('users.roles'); |
||
35 | |||
36 | // Add any data to the table. |
||
37 | DB::table('acl_roles')->insert($roles); |
||
38 | } |
||
39 | |||
53 |