Replies: 3 comments 10 replies
-
It just uses the built in NumberFormatter class and then calls this https://www.php.net/manual/en/numberformatter.formatcurrency.php https://github.com/filamentphp/support/blob/3.x/src/helpers.php#L19 |
Beta Was this translation helpful? Give feedback.
2 replies
-
a workaround use Illuminate\Support\Str;
TextColumn::make('price')
->formatStateUsing(function ($state) {
return Str::replace('IDR', 'Rp', format_money($state, 'IDR'));
}) |
Beta Was this translation helpful? Give feedback.
8 replies
-
How can I do this in form layout. I wanna if typing 1000 it turns to 1.000 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
where can I find the settings for the currency/money format used in the table builder? my code
Tables\Columns\TextColumn::make('price')
->money('IDR')
it show in table IDR 50,000.00, how do i change IDR to Rp ?
Beta Was this translation helpful? Give feedback.
All reactions