mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
64 lines
1.6 KiB
PHP
64 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://opensource.org/licenses/AAL
|
|
*/
|
|
namespace Database\Seeders;
|
|
|
|
|
|
use App\Models\Timezone;
|
|
use Database\Seeders\BanksSeeder;
|
|
use Database\Seeders\ConstantsSeeder;
|
|
use Database\Seeders\CountriesSeeder;
|
|
use Database\Seeders\CurrenciesSeeder;
|
|
use Database\Seeders\DateFormatsSeeder;
|
|
use Database\Seeders\DesignSeeder;
|
|
use Database\Seeders\GatewayTypesSeeder;
|
|
use Database\Seeders\IndustrySeeder;
|
|
use Database\Seeders\LanguageSeeder;
|
|
use Database\Seeders\PaymentLibrariesSeeder;
|
|
use Database\Seeders\PaymentTypesSeeder;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$this->command->info('Running DatabaseSeeder');
|
|
|
|
if (Timezone::count()) {
|
|
$this->command->info('Skipping: already run');
|
|
|
|
return;
|
|
}
|
|
|
|
Model::unguard();
|
|
|
|
$this->call([
|
|
ConstantsSeeder::class,
|
|
PaymentLibrariesSeeder::class,
|
|
BanksSeeder::class,
|
|
CurrenciesSeeder::class,
|
|
LanguageSeeder::class,
|
|
CountriesSeeder::class,
|
|
IndustrySeeder::class,
|
|
PaymentTypesSeeder::class,
|
|
GatewayTypesSeeder::class,
|
|
DateFormatsSeeder::class,
|
|
DesignSeeder::class,
|
|
]);
|
|
|
|
}
|
|
}
|