How to number_format numbers in the tables?

Hi. I have some prices in Filament table builder and I want to number_format them e.g. convert 1234567 to 1,234,567
2 Replies
toeknee
toeknee2y ago
You can use formatStateUsing(fn($state) => number_format((int) $state, 2) as an example
Atena.D
Atena.DOP2y ago
Thanks 👍

Did you find this page helpful?