Files
firefly-iii/database/seeds/DatabaseSeeder.php

36 lines
822 B
PHP
Raw Normal View History

2015-02-06 04:39:52 +01:00
<?php
use Illuminate\Database\Eloquent\Model;
2015-02-11 07:35:10 +01:00
use Illuminate\Database\Seeder;
/**
* Class DatabaseSeeder
*/
class DatabaseSeeder extends Seeder
{
2015-02-06 04:39:52 +01:00
2015-02-06 04:41:00 +01:00
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Model::unguard();
$this->call('AccountTypeSeeder');
$this->call('TransactionCurrencySeeder');
$this->call('TransactionTypeSeeder');
$this->call('PermissionSeeder');
2015-02-06 04:39:52 +01:00
2016-01-16 09:15:24 +01:00
// set up basic test data (as little as possible):
2016-02-05 15:01:33 +01:00
if (App::environment() == 'testing' || App::environment() == 'local') {
2015-02-06 04:41:00 +01:00
$this->call('TestDataSeeder');
}
// set up basic test data (as little as possible):
if (App::environment() == 'split') {
$this->call('SplitDataSeeder');
}
2015-02-06 04:41:00 +01:00
}
2015-02-06 04:39:52 +01:00
}