[ 'required', ], 'currency_id' => [ 'required' ] ]; } public function getExchangeRateLogPayload() { $companyCurrency = CompanySetting::getSetting( 'currency', $this->header('company') ); if ($this->currency_id !== $companyCurrency) { return collect($this->validated()) ->merge([ 'company_id' => $this->header('company'), 'base_currency_id' => $companyCurrency, ]) ->toArray(); } } }