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?

貢獻者指南