protected function getCommand($id) { $connection = $this->connectionName; $cmd = '%s artisan queue:async %d %s'; $cmd = $this->getBackgroundCommand($cmd); $binary = $this->getPhpBinary(); return sprintf($cmd, $binary, $id, $connection); }