Skip to content

Commit cd3b365

Browse files
committed
refactor: remove commented-out code in cartController store method
1 parent a99c2a0 commit cd3b365

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

app/Http/Controllers/cartController.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ public function store(Request $request)
5858
->where('product_id', $request->product_id)
5959
->first();
6060

61-
$cart = cartItem::with(['product.images'])
62-
->where('user_id', Auth::id())
63-
->get();
64-
dd($cart->toArray());
65-
6661
if ($existing) {
6762
$existing->quantity += $request->quantity;
6863
$existing->save();

0 commit comments

Comments
 (0)