Use the MoneyField in EasyAdmin
5.xThe MoneyField is used to represent properties that store monetary amounts. It renders as an <input type="number"> in forms and handles formatting in read-only pages like index and detail views.
Technical Details:
- PHP Class:
EasyCorp\Bundle\EasyAdminBundle\Field\MoneyField - Symfony Form Type:
MoneyType - Database Types: Works with
decimal,float, orinteger.