-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
With no currencies selected, app('currency')->get() returns the currency code for the default currency.
Following your example, the index of the array is saved, not the currency code': @foreach(app('currency')->options() as $option) <option value="/currency/{{ $option->value }}" {{ app('currency')->selected($option->value) }} >{{ $option->label }}</option> @Endforeach The Option's value is the keyed integer from the array of currencies not the code: SSD\Currency\Option Object ( [value:SSD\Currency\Option:private] => 0 [label:SSD\Currency\Option:private] => GBP (£) ) So in subsequent calls to app('currency')->get(), it's just giving the integer, not the code.
Metadata
Metadata
Assignees
Labels
No labels