示例#1
0
 public function delete($id)
 {
     //
     $item = Resep::find($id);
     $item->delete();
     $item['resep'] = Resep::all();
     return redirect('resep');
 }
示例#2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function delete($id)
 {
     //
     $item = Resep::find($id);
     $item->delete();
     return redirect('bahan');
 }