company = $company; } /** * Execute the job. * * @return bool */ public function handle() { MultiDB::setDb($this->company->db); $cgs = CompanyGateway::where('company_id', $this->company->id) ->whereIn('gateway_key', $this->stripe_keys) ->get(); $cgs->each(function ($company_gateway){ $company_gateway->driver(new Client)->importCustomers(); }); } public function failed($exception) { nlog("Stripe import customer methods exception"); nlog($exception->getMessage()); } }