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');
|
|
|
|
|
2018-10-04 19:10:43 +02:00
|
|
|
}
|
|
|
|
}
|