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');
|
2020-05-27 01:49:06 +02:00
|
|
|
//$this->call('PaymentTermsSeeder');
|
2019-02-17 11:34:46 +01:00
|
|
|
$this->call('PaymentTypesSeeder');
|
2019-08-22 03:58:42 +02:00
|
|
|
$this->call('GatewayTypesSeeder');
|
2019-09-22 11:30:03 +02:00
|
|
|
$this->call('DateFormatsSeeder');
|
2020-02-12 01:41:17 +01:00
|
|
|
$this->call('DesignSeeder');
|
2018-10-04 19:10:43 +02:00
|
|
|
}
|
|
|
|
}
|