FilamentF
Filament13mo ago
Raven

How do I integrate `moneyphp/money` with text inputs and columns?

Hello! I want to use moneyphp/money such that:
  1. On record creation, the user will input in major currency, dollars for example.
  2. On save, moneyphp/money will convert the dollars into minor currency, cents in this case.
  3. On edit, the user will be shown major currency.
  4. On view in tables, the user will also be shown major currency.
I should note that the field I'm storing the currency in is NOT a direct attribute on the table. It's in a JSON column using a repeater.
Was this page helpful?