classes/Models/Worker.php
protected function execute(InputInterface $input, OutputInterface $output)
    {
        if ($this->option('worker')) {
            return $this->worker();
        }

        if ($this->option('cron')) {
            return $this->cron();
        }

        if ($this->option('heartbeat')) {
            return $this->heartbeat();
        }

        return parent::execute($input, $output);
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        if ($this->option('worker')) {
            return $this->worker();
        }

        if ($this->option('cron')) {
            return $this->cron();
        }

        if ($this->option('heartbeat')) {
            return $this->heartbeat();
        }

        return parent::execute($input, $output);
    }
protected function execute ( InputInterface $ input , OutputInterface $ output ) { if ( $ this -> option ( 'worker' ) ) { return $ this -> worker ( ) ; } if ( $ this -> option ( 'cron' ) ) { return $ this -> cron ( ) ; } if ( $ this -> option ( 'heartbeat' ) ) { return $ this -> heartbeat ( ) ; } return parent :: execute ( $ input , $ output ) ; }
Tap into the Laravel method that invokes the fire command to check for and
act on options
Tap into the Laravel method that invokes the fire command to check for and act on options