public function runTask($id)
    {
        set_time_limit(0);

        /** @var \Illuminate\Console\Scheduling\Event $event */
        $event = $this->getKernelEvents()[$id - 1];

        $event->sendOutputTo($this->getOutputTo());

        $event->run(app());

        return $this->readOutput();
    }
public function runTask($id)
    {
        set_time_limit(0);

        /** @var \Illuminate\Console\Scheduling\Event $event */
        $event = $this->getKernelEvents()[$id - 1];

        $event->sendOutputTo($this->getOutputTo());

        $event->run(app());

        return $this->readOutput();
    }
public function runTask ( $ id ) { set_time_limit ( 0 ) ; /** @var \Illuminate\Console\Scheduling\Event $event */ $ event = $ this -> getKernelEvents ( ) [ $ id - 1 ] ; $ event -> sendOutputTo ( $ this -> getOutputTo ( ) ) ; $ event -> run ( app ( ) ) ; return $ this -> readOutput ( ) ; }
Run specific task.

@param int $id

@return string
Run specific task .