public function destroy(Request $request)
 {
     foreach ($request->input('to_delete') as $item_id) {
         Type::destroy($item_id);
     }
     return Redirect::to('types');
 }
Beispiel #2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     Type::destroy($id);
     return;
 }
Beispiel #3
0
 /**
  * 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!');
 }