Create extension
-
Create the extension -
This extension should require: https://github.com/Propaganistas/Laravel-Intl
-
This extension will provide an addon: currency-field_type (similar to decimal-field_type) -
config.phpwill be only: min, max, default_value -
FieldTypewill be similar todecimalbut cleanup the config too -
FieldTypeSchemawill be similar, but without the config too (replace by false) -
FieldTypePresenterwill haveformatandcurrencytoo, but it will usePropaganistas/Laravel-Intlnumber()andcurrency()
-
Edited by Thanatcha