| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function run() |
||
| 11 | { |
||
| 12 | Model::unguard(); |
||
| 13 | |||
| 14 | $this->command->info('Seeding...'); |
||
| 15 | |||
| 16 | DBHelpers::setFKCheckOff(); |
||
| 17 | |||
| 18 | DB::table('competitor')->truncate(); |
||
| 19 | DB::table('tournament')->truncate(); |
||
| 20 | DB::table('category')->truncate(); |
||
| 21 | DB::table('users')->truncate(); |
||
| 22 | DB::table('venue')->truncate(); |
||
| 23 | |||
| 24 | $this->call(VenueSeeder::class); |
||
| 25 | $this->call(CategorySeeder::class); |
||
| 26 | $this->call(TournamentSeeder::class); |
||
| 27 | $this->call(CompetitorSeeder::class); |
||
| 28 | |||
| 29 | $this->command->info('All tables seeded!'); |
||
| 30 | DBHelpers::setFKCheckOn(); |
||
| 31 | Model::reguard(); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.