firefly-iii/database/seeds/DatabaseSeeder.php

32 lines
664 B
PHP
Raw Normal View History

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');
$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-02-05 08:01:33 -06:00
if (App::environment() == 'testing' || App::environment() == 'local') {
2015-02-05 21:41:00 -06:00
$this->call('TestDataSeeder');
}
}
2015-02-05 21:39:52 -06:00
}