2015-02-05 21:39:52 -06:00
|
|
|
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class DatabaseSeeder extends Seeder {
|
|
|
|
|
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-02-05 21:39:52 -06:00
|
|
|
|
2015-02-05 21:41:00 -06:00
|
|
|
if (App::environment() == 'testing' || App::environment() == 'homestead') {
|
|
|
|
$this->call('TestDataSeeder');
|
|
|
|
}
|
|
|
|
}
|
2015-02-05 21:39:52 -06:00
|
|
|
|
|
|
|
}
|