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"}



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2XcR38W
via IFTTT

Aucun commentaire:

Enregistrer un commentaire