mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-11-03 20:55:05 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			664 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			664 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');
 | 
						|
        $this->call('PermissionSeeder');
 | 
						|
 | 
						|
        // set up basic test data (as little as possible):
 | 
						|
        if (App::environment() == 'testing' || App::environment() == 'local') {
 | 
						|
            $this->call('TestDataSeeder');
 | 
						|
        }
 | 
						|
    }
 | 
						|
 | 
						|
}
 |