option('con'); $param = $this->option('param'); if(!empty($con)) { switch ($con) { case 'jobs': $response = (new ApiController())->digioupdatePostJob(new Request($param)); if ($response->getStatusCode() == 200) { return Utility::handlerSendSuccess([],Lang::get('message.jobs_success')); } else { return Utility::handlerSendFailed([\Config::get("constants.txt.txt_errors") => ['Exception encountered']]); } break; default: return Utility::handlerSendFailed([\Config::get("constants.txt.txt_errors") => ['No case found to handle in ExecuteJob']]); } } else { return Utility::handlerSendFailed([\Config::get("constants.txt.txt_errors") => ['Context is missing']]); } } }