currency - 显示值作为格式化的货币
total_amount:
label: Loan amount
type: currency此列在安装 October CMS 市场上提供的 货币插件 后引入。您可以使用以下命令安装它。
php artisan plugin:install Responsiv.Currency:::
以下属性受支持。
| Property | Description |
|---|---|
| format | provides a display format. Supported values: long, short, null. |
| fromCode | specify the source currency code. |
| toCode | specify the display currency code. |
| site | display the currency using the multisite definition context. Default: false |
使用 format 属性以更长的格式显示列值。
total_amount:
label: Loan amount
type: currency
format: long将 site 属性设置为 true 如果模型值是使用多站点定义存储的。这将自动设置 toCode 和 fromCode 值用于站点定义。
total_amount:
label: Loan amount
type: currency
site: true