vendredi 31 mai 2019

How desplay the number from the Code in blade Laravel

Show only the variable number in the blade from the $sum value

    $sum = OrderPosition::select(DB::raw('sum(quantity*product_price) AS total_sales'))->where('quantity', '<>', 1)->get();

the output is {"total_sales":"550.00"}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire