/**
  * @return int
  */
 public function emptyCart()
 {
     // empty the shopping cart
     return $this->shoppingCart->makeItEmpty();
 }
Esempio n. 2
0
 /**
  * @param Request $request
  *
  * @return \Illuminate\Http\RedirectResponse|\Symfony\Component\HttpFoundation\Response
  */
 public function removeAllProducts(Request $request)
 {
     $this->data = $this->shoppingCart->makeItEmpty();
     return $this->handleRedirect($request);
 }