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