Bart

Results 2 comments of Bart

Works for index & detail view however not for form. I'm using `Money::make('Amount', strtoupper($this->currency))->storedInMinorUnits(),` and getting this error: ``` "message": "Cannot find currency ", "exception": "Money\\Exception\\UnknownCurrencyException", "file": "/Users/XXX/XXX/XXX/vendor/moneyphp/money/src/Currencies/AggregateCurrencies.php", "line": 60,...

no luck, same error, however `$this->currency ? $this->currency : 'USD'` worked when i \Log::info `$this->currency` in `fields` function, it logs twice: first exact value from the model and second time...