コード例 #1
0
 /**
  * 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'));
 }
コード例 #2
0
 public function deleteWishlistItem($id)
 {
     $item = Wishlist::find($id);
     $item->delete();
     return redirect()->back();
 }