2015-03-12 01:44:39 +01:00
|
|
|
<?php
|
|
|
|
|
2017-06-19 10:03:39 +02:00
|
|
|
use App\Models\Timezone;
|
|
|
|
|
2016-01-20 09:41:57 +01:00
|
|
|
class DatabaseSeeder extends Seeder
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the database seeds.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
$this->command->info('Running DatabaseSeeder');
|
2015-03-12 01:44:39 +01:00
|
|
|
|
2017-06-19 10:03:39 +02:00
|
|
|
if (Timezone::count()) {
|
|
|
|
$this->command->info('Skipping: already run');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2016-01-20 09:41:57 +01:00
|
|
|
Eloquent::unguard();
|
2015-03-12 04:39:52 +01:00
|
|
|
|
2016-01-20 09:41:57 +01:00
|
|
|
$this->call('ConstantsSeeder');
|
|
|
|
$this->call('CountriesSeeder');
|
|
|
|
$this->call('PaymentLibrariesSeeder');
|
2016-02-04 21:58:34 +01:00
|
|
|
$this->call('FontsSeeder');
|
2016-09-15 12:41:09 +02:00
|
|
|
$this->call('GatewayTypesSeeder');
|
2016-01-20 00:07:31 +01:00
|
|
|
$this->call('BanksSeeder');
|
2016-01-20 09:41:57 +01:00
|
|
|
$this->call('InvoiceStatusSeeder');
|
2018-02-12 13:30:27 +01:00
|
|
|
$this->call('ProposalTemplatesSeeder');
|
2016-04-23 22:40:19 +02:00
|
|
|
$this->call('PaymentStatusSeeder');
|
2016-02-27 21:12:22 +01:00
|
|
|
$this->call('CurrenciesSeeder');
|
|
|
|
$this->call('DateFormatsSeeder');
|
|
|
|
$this->call('InvoiceDesignsSeeder');
|
|
|
|
$this->call('PaymentTermsSeeder');
|
2016-04-28 04:13:51 +02:00
|
|
|
$this->call('PaymentTypesSeeder');
|
2016-05-05 10:55:09 +02:00
|
|
|
$this->call('LanguageSeeder');
|
2016-08-21 18:35:06 +02:00
|
|
|
$this->call('IndustrySeeder');
|
2017-02-23 15:33:02 +01:00
|
|
|
$this->call('FrequencySeeder');
|
2017-05-02 11:09:01 +02:00
|
|
|
$this->call('DbServerSeeder');
|
2016-01-20 09:41:57 +01:00
|
|
|
}
|
|
|
|
}
|