Postingan lainnya
perkalian kolom database mysql dalam laravel gmna yaa? apakah seperti ini?
@php
$item_total = ($lab->item_value)*($lab->item_quality);
@endphp
0
2 Jawaban:
<div>coba simpan di variabel dulu gan. ntar variabelnya di kalikan.</div>
0
<div>Mungkin bisa pakai raw query seperti ini :</div><pre>DB::table('order') ->select(DB::raw('(order.ex_rate_with_base * order_list.unit_price_in_base_currency) as orderRate')) ->leftjoin('order_list','order_list.order_id','=','order.id) ->get();</pre><div><br>Referensi : <a href="https://www.javaer101.com/en/article/16845367.html">https://www.javaer101.com/en/article/16845367.html</a></div>
0