2015-02-05 21:39:52 -06:00
|
|
|
<?php
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2015-02-11 00:35:10 -06:00
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class DatabaseSeeder
|
|
|
|
*/
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
|
|
{
|
2015-02-05 21:39:52 -06:00
|
|
|
|
2015-02-05 21:41:00 -06:00
|
|
|
/**
|
|
|
|
* Run the database seeds.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
Model::unguard();
|
|
|
|
|
|
|
|
$this->call('AccountTypeSeeder');
|
|
|
|
$this->call('TransactionCurrencySeeder');
|
|
|
|
$this->call('TransactionTypeSeeder');
|
2015-05-27 23:43:07 -05:00
|
|
|
$this->call('PermissionSeeder');
|
2015-02-05 21:39:52 -06:00
|
|
|
|
2016-01-16 02:15:24 -06:00
|
|
|
// set up basic test data (as little as possible):
|
2016-01-17 00:07:22 -06:00
|
|
|
if (App::environment() == 'testing') {
|
2015-02-05 21:41:00 -06:00
|
|
|
$this->call('TestDataSeeder');
|
|
|
|
}
|
2016-01-16 02:15:24 -06:00
|
|
|
|
|
|
|
// this one is reserved for more extensive testing.
|
2016-01-17 00:07:22 -06:00
|
|
|
if (App::environment() == 'local') {
|
2016-01-16 14:32:36 -06:00
|
|
|
$this->call('VisualTestDataSeeder');
|
|
|
|
}
|
2015-02-05 21:41:00 -06:00
|
|
|
}
|
2015-02-05 21:39:52 -06:00
|
|
|
|
|
|
|
}
|