company = $company; $this->request = $request; } /** * Execute the job. */ public function handle(): void { MultiDB::setDb($this->company->db); set_time_limit(0); $engine = new Quickbooks(['import_type' => 'client', 'hash'=> $this->request['hash'] ], $this->company); foreach ($this->request['import_types'] as $entity) { $engine->import($entity); } $engine->finalizeImport(); } }