| Total Complexity | 2 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class DatabaseSeeder extends Seeder |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Run the database seeds. |
||
| 19 | * |
||
| 20 | * @return void |
||
| 21 | */ |
||
| 22 | public function run() |
||
| 23 | { |
||
| 24 | $this->reset(); |
||
| 25 | |||
| 26 | $this->call([ |
||
| 27 | CountriesTableSeeder::class, |
||
| 28 | ProvincesTableSeeder::class, |
||
| 29 | CitiesTableSeeder::class, |
||
| 30 | DistrictsTableSeeder::class, |
||
| 31 | VillagesTableSeeder::class, |
||
| 32 | CurrenciesTableSeeder::class, |
||
| 33 | ColorsTableSeeder::class, |
||
| 34 | ]); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Reset database with disable foreign key and enable again |
||
| 39 | * if database was truncate. |
||
| 40 | */ |
||
| 41 | public function reset() |
||
| 54 | } |
||
| 55 | } |
||
| 56 |