thedevdojo/voyager

How to formmat numbers with JSON bread

开放

#3,326 创建于 2018年6月18日

 (2 条评论) (0 个反应) (0 位负责人)PHP (2,652 个派生)batch import
help wantedtype:enhancement

仓库指标

星标
 (11,817 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

  • Laravel Version: 5.4
  • Voyager Version: 1.06
  • PHP Version: 7.0
  • Database Driver & Version: MySQL (It doesn't matter)

Description:

//In a blade file
{{ $number_format($product->price, 0, ',', '.') }}

If I want to format the displayed data in a BREAD view, how should be my JSON string to achieve my purpose?

贡献者指南