みんな。以下のエラーに直面しています
htmlentities() expects parameter 1 to be string, object given (View: E:\accounting\resources\views\index.blade.php)
このクエリをlaravelで実行していて、何が欠けているのかわからない場合は、助けてください。ありがとうクエリ:
$purchase = DB::table('purchases')
->join('currencies', 'currencies.cur_id', '=', 'purchases.currency_id')
->selectRaw('purchases.*, currencies.currency ,SUM(purchases.quantity*unit_price) as total, SUM(purchases.c_price*quantity) as usd_total')
->first();
意見:
<div class="col-xs-8">
<p class="text-elg text-strong mb-0">
{{ number_format($purchase->usd_total,2) }}
</p>
<span>Purchases</span>
</div>