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