charId = $jpc->charId; $this->corpId = $jpc->corpId; $this->page = $jpc->page; //Set the connection for the job $this->connection = 'redis'; } /** * Execute the job. * * @return void */ public function handle() { //Declare the contracts helper $cHelper = new EveContractsHelper($this->charId, $this->corpId, $this->page); $contracts = $cHelper->GetContractsByPage(); foreach($contracts as $contract) { $cHelper->ProcessContract($contract); } //After the job is completed, delete the job $this->delete(); } }