company->db); $tp = new TaxProvider($this->company); $tp->updateCompanyTaxData(); $tp = null; Client::query() ->where('company_id', $this->company->id) ->where('is_deleted', false) ->where('country_id', 840) ->whereNotNull('postal_code') ->whereNull('tax_data') ->where('is_tax_exempt', false) ->cursor() ->each(function ($client) { (new UpdateTaxData($client, $this->company))->handle(); }); } public function middleware() { return [new WithoutOverlapping($this->company->id)]; } }