Fix senarai lelong show by id

This commit is contained in:
Amir
2022-11-10 09:25:01 +08:00
parent 18528c8914
commit 6bf82b9810
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ class LelongController extends Controller
public function show(Request $request, $id)
{
$lelong_id = $id;
$lelong = Lelong::with(['cawangan', 'lelongBid.lelongBidMarhun', 'lelKarat'])->first();
$lelong = Lelong::with(['cawangan', 'lelongBid.lelongBidMarhun', 'lelKarat'])->find($id);
$lelkarat = $lelong->lelKarat;
$jeniskarat = JenisKarat::all();