public function storeCustomRecord($parameters) { $taxRule = TaxRule::create(['name_104' => $this->request->input('name'), 'translation_104' => $this->request->has('translation') ? $this->request->input('translation') : null, 'priority_104' => $this->request->input('priority'), 'sort_order_104' => $this->request->input('sortOrder')]); $taxRule->getTaxRateZones()->sync($this->request->input('taxRateZones')); $taxRule->getCustomerClassTaxes()->sync($this->request->input('customerClassTaxes')); $taxRule->getProductClassTaxes()->sync($this->request->input('productClassTaxes')); }