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');
|
2015-05-28 06:43:07 +02:00
|
|
|
$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');
|
|
|
|
}
|
2016-04-30 09:48:39 +02:00
|
|
|
// 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
|
|
|
|
|
|
|
}
|