/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $item = Wishlist::find($id); return view('wishlist.edit', compact('item')); }
public function deleteWishlistItem($id) { $item = Wishlist::find($id); $item->delete(); return redirect()->back(); }