/**
  * @return int
  */
 public function emptyCart()
 {
     // empty the shopping cart
     return $this->shoppingCart->makeItEmpty();
 }
예제 #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);
 }