thedevdojo/voyager

How to formmat numbers with JSON bread

Open

#3326 opened on Jun 18, 2018

View on GitHub
 (2 comments) (0 reactions) (0 assignees)PHP (11,817 stars) (2,652 forks)batch import
help wantedtype:enhancement

Description

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

Contributor guide