2018-10-04 19:10:43 +02:00
|
|
|
<?php
|
|
|
|
|
2018-10-16 13:42:43 +02:00
|
|
|
use App\Models\Timezone;
|
2018-10-04 19:10:43 +02:00
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
|
|
{
|
|
|
|
/**
|
2018-10-16 13:42:43 +02:00
|
|
|
* Run the database seeds.
|
2018-10-04 19:10:43 +02:00
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function run()
|
|
|
|
{
|
2018-10-16 13:42:43 +02:00
|
|
|
$this->command->info('Running DatabaseSeeder');
|
|
|
|
|
|
|
|
if (Timezone::count()) {
|
|
|
|
$this->command->info('Skipping: already run');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
Eloquent::unguard();
|
|
|
|
|
|
|
|
$this->call('ConstantsSeeder');
|
|
|
|
$this->call('PaymentLibrariesSeeder');
|
|
|
|
$this->call('BanksSeeder');
|
|
|
|
$this->call('CurrenciesSeeder');
|
|
|
|
$this->call('LanguageSeeder');
|
|
|
|
$this->call('CountriesSeeder');
|
2019-02-17 11:34:46 +01:00
|
|
|
$this->call('IndustrySeeder');
|
|
|
|
$this->call('PaymentTypesSeeder');
|
2019-08-22 03:58:42 +02:00
|
|
|
$this->call('GatewayTypesSeeder');
|
2018-10-16 13:42:43 +02:00
|
|
|
|
2018-10-04 19:10:43 +02:00
|
|
|
}
|
|
|
|
}
|