public function destroy(Request $request) { foreach ($request->input('to_delete') as $item_id) { Type::destroy($item_id); } return Redirect::to('types'); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { Type::destroy($id); return; }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Type::destroy($id); return redirect('type')->with('message', 'Data berhasil dihapus!'); }