F
Filament2y ago
Noor

money format

so I want dollar signs on my table price list for which I'm using TextColumn::make('price')->money('cad', true)->sortable(), this but it shows CA in front of every price which I don't want
5 Replies
Salah Kanjo
Salah Kanjo2y ago
You can instead use ->prefix("$")
Noor
NoorOP2y ago
then It does not show this format $32.00 it shows $32
Salah Kanjo
Salah Kanjo2y ago
Try appending ->numeric() But i think ->money () should do the job
Noor
NoorOP2y ago
nope doesn't work
josef
josef2y ago
I'm guessing that's just how canadian dollars are formatted then, using money. You could use something else to fomat the price, e.g. akounting/money (not sure if it's different there, though)

Did you find this page helpful?