/** * Deletes a product from the shopping cart. * * @param string $id * @return \Illuminate\Http\RedirectResponse */ public function deleteAjax($id) { $item = $this->wishlist->item($id); $this->wishlist->remove($id); return ['message' => 'success', 'id' => $item->get('id')]; }