我試圖實現減去不同表中的兩個整數值,這是我到目前為止所嘗試的。Controller:$amount = DB::table('shipping_datas')->where('amount')->first();$payment = DB::table('payments')->where('amount')->first();$balance = $amount - $payment;Blade:{{ $balance }}先感謝您 :)
如何在 Laravel 中不同表中的兩個整數值相減
慕碼人8056858
2023-09-22 14:39:22