thedevdojo/voyager

How to formmat numbers with JSON bread

Open

#3 326 ouverte le 18 juin 2018

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)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?

Guide contributeur