F
Filament16mo 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 Kanjo16mo ago
You can instead use ->prefix("$")
Noor
NoorOP16mo ago
then It does not show this format $32.00 it shows $32
Salah Kanjo
Salah Kanjo16mo ago
Try appending ->numeric() But i think ->money () should do the job
Noor
NoorOP16mo ago
nope doesn't work
josef
josef16mo 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)
Want results from more Discord servers?
Add your server