I'm trying to format an integer in Laravel Nova but nothing seems to work.
I have tried the following:
Currency::make('Price', 'price')
->displayUsing(function($value) {
return number_format($value, ',');
})
->hideFromDetail(),
Currency::make('Price', 'price')
->format('%.2n')
->hideFromDetail(),
It also doesn't work if I utilise the Number field.
The result is always an unformatted number like 49000000000 when it should be 49,000,000,000
What am I missing?