Money#
Money holds an amount in the currency’s minor units (cents, whole
yen), money in the descriptor. The currency is fixed with currency()
or read from a field with currencyField(); see
Money and currencies.
Money::make('priceCents', 'Price')->currencyField('currency')->sortable()->filterable()->summarize('avg'),
A filterable amount takes eq ne lt lte gt gte between in nin
(Filter operators). It takes the common modifiers too.