mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-28 03:34:32 -06:00
30 lines
568 B
PHP
30 lines
568 B
PHP
<?php
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
/**
|
|
* Class DatabaseSeeder
|
|
*/
|
|
class DatabaseSeeder extends Seeder
|
|
{
|
|
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
Model::unguard();
|
|
|
|
$this->call('AccountTypeSeeder');
|
|
$this->call('TransactionCurrencySeeder');
|
|
$this->call('TransactionTypeSeeder');
|
|
|
|
if (App::environment() == 'testing' || App::environment() == 'homestead') {
|
|
$this->call('TestDataSeeder');
|
|
}
|
|
}
|
|
|
|
}
|