thedevdojo/voyager

How to formmat numbers with JSON bread

Open

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

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)PHP (11,817 star) (2,652 fork)batch import
help wantedtype:enhancement

描述

  • 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?

贡献者指南