data['currency'])) { $currencyPreference = Preferences::get('currencyPreference', env('DEFAULT_CURRENCY', 'EUR')); $this->data['currency'] = TransactionCurrency::whereCode($currencyPreference->data)->first(); } return $this->data; } /** * @param array $data */ public function setData(array $data) { $this->data = $data; } }