public function startProcess($id) { $command = $this->getCommand($id); $cwd = base_path(); $process = new Process($command, $cwd); $process->run(); }
/** * Make a Process for the Artisan command for the job id. * * @param int $jobId * @param int $delay * @return void * @static */ public static function startProcess($jobId, $delay = 0) { \Barryvdh\Queue\AsyncQueue::startProcess($jobId, $delay); }