request = $request; $this->company = $company; $this->hash = $request->input('hash'); $this->entity_type = $request->input('entity_type'); $this->skip_headers = $request->input('skip_headers'); } /** * Execute the job. * * * @return void */ public function handle() { MultiDB::setDb($this->company->db); } public function failed($exception) { } private function getCsv() { $base64_encoded_csv = Cache::get($this->hash); return base64_decode($base64_encoded_csv); } }