/**
  * Destroys the wishlist.
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function destroy()
 {
     $this->wishlist->clear();
     return Redirect::to('wishlist');
 }
Esempio n. 2
0
 /**
  * Destroys the shopping cart.
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function destroy()
 {
     $this->cart->clear();
     return Redirect::to('cart');
 }