mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 06:57:32 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			541 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			541 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php namespace App\Console\Commands;
 | |
| 
 | |
| use Illuminate\Console\Command;
 | |
| use Symfony\Component\Console\Input\InputOption;
 | |
| use Symfony\Component\Console\Input\InputArgument;
 | |
| 
 | |
| class ResetData extends Command {
 | |
| 
 | |
|   protected $name = 'ninja:reset-data';
 | |
|   protected $description = 'Reset data';
 | |
| 
 | |
|   public function fire()
 | |
|   {
 | |
|     $this->info(date('Y-m-d') . ' Running ResetData...');
 | |
| 
 | |
|     if (!Utils::isNinjaDev()) {
 | |
|       return;
 | |
|     }
 | |
| 
 | |
|     Artisan::call('migrate:reset');
 | |
|     Artisan::call('migrate');       
 | |
|     Artisan::call('db:seed');   
 | |
|   }
 | |
| } |