public function delete($id) { // $item = Resep::find($id); $item->delete(); $item['resep'] = Resep::all(); return redirect('resep'); }
/** * 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'); }