Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Sep 10, 2024
1 parent 6faef74 commit 8ca3304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/CartLineItemsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function store(AddLineItemRequest $request)
$product = Product::find($request->product);

$data = $request->collect()->except([
'_redirect', '_error_redirect', 'product', 'variant', 'quantity', 'first_name', 'last_name'. 'email', 'customer',
'_token', '_redirect', '_error_redirect', 'product', 'variant', 'quantity', 'first_name', 'last_name'. 'email', 'customer',
]);

$this->validateStock($request, $cart);
Expand Down Expand Up @@ -78,7 +78,7 @@ public function update(UpdateLineItemRequest $request, string $lineItem)
throw_if(! $lineItem, NotFoundHttpException::class);

$data = $request->collect()->except([
'_redirect', '_error_redirect', 'product', 'variant', 'quantity', 'first_name', 'last_name'. 'email', 'customer',
'_token', '_redirect', '_error_redirect', 'product', 'variant', 'quantity', 'first_name', 'last_name'. 'email', 'customer',
]);

$this->validateStock($request, $cart, $lineItem);
Expand Down

0 comments on commit 8ca3304

Please sign in to comment.