/** * Start download queue * * @param $job * @param $data */ public function fire($job, $data) { $this->import->uploadPdfToS3AndCreateContracts($data['key']); $job->delete(); }
/** * Delete Folder * * @param $key * @return \Illuminate\Http\RedirectResponse */ public function delete($key) { $this->contractImport->deleteImportFolder($key); return redirect()->route('contract.import'); }
/** * Start download queue * * @param $job * @param $data */ public function fire($job, $data) { $this->import->download($data['import_key']); $job->delete(); }