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();
 }
 /**
  * Run the command.
  */
 public function fire()
 {
     parent::fire();
     if (app()->environment() === 'testing') {
         return;
     }
     $this->call('optimize');
 }