mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 18:54:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			641 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			641 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');
 | |
| 
 | |
|         if (App::environment() == 'testing' || App::environment() == 'homestead' || gethostname() == 'lightning') {
 | |
|             $this->call('TestDataSeeder');
 | |
|         }
 | |
|     }
 | |
| 
 | |
| }
 |