fire() public method

Execute the console command.
public fire ( )
 public function fire()
 {
     if (!$this->option('event')) {
         return $this->error('The --event option is necessary');
     }
     parent::fire();
 }
Exemplo n.º 2
0
 /**
  * Run the command.
  */
 public function fire()
 {
     parent::fire();
     if (app()->environment() === 'testing') {
         return;
     }
     $this->call('optimize');
 }