1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/database/seeds/DatabaseSeeder.php

37 lines
838 B
PHP
Raw Normal View History

2018-10-04 19:10:43 +02:00
<?php
use App\Models\Timezone;
2018-10-04 19:10:43 +02:00
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
2018-10-04 19:10:43 +02:00
*
* @return void
*/
public function run()
{
$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');
$this->call('IndustrySeeder');
$this->call('PaymentTypesSeeder');
$this->call('GatewayTypesSeeder');
2019-09-22 11:30:03 +02:00
$this->call('DateFormatsSeeder');
2018-10-04 19:10:43 +02:00
}
}