| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function run() |
||
| 13 | { |
||
| 14 | DB::statement('SET FOREIGN_KEY_CHECKS=0;'); |
||
| 15 | // call the seeders |
||
| 16 | $this->call([ |
||
| 17 | UsersTableSeeder::class, |
||
| 18 | QuizzesTableSeeder::class, |
||
| 19 | QuestionsTableSeeder::class, |
||
| 20 | QuestionsChoicesTableSeeder::class, |
||
| 21 | UserQuizzesTableSeeder::class, |
||
| 22 | ProfilesTableSeeder::class |
||
| 23 | ]); |
||
| 24 | // no real need to re-enable checks, as it's only set for the "current" connection |
||
| 25 | // but for clarity I've included it. |
||
| 26 | DB::statement('SET FOREIGN_KEY_CHECKS=1;'); |
||
| 27 | } |
||
| 29 |