Currency#

Currency holds an ISO 4217 code in a string column, currency in the descriptor, chosen from a searchable list that names each code in the UI’s language (EUR · Euro). The list holds every code, or allowed(['EUR', 'USD']). Codes are stored upper-case, anything else is refused, and it filters like a single select. It starts from default('EUR'), else VECTOR_CURRENCY (when it allows the code).

Currency::make('currency')->allowed(['EUR', 'USD', 'GBP'])->filterable()->hideFromIndex(),
A Currency field on the product form: a select labelled Currency, showing EUR · Euro
A Currency field on the product form: a select labelled Currency, showing EUR · Euro

A Money field reads its currency from a Currency field through currencyField(); see Money and currencies. It takes the common modifiers too.