public function destroyObject($id) { $object = Medication::destroy($id); return 200; }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Medication::destroy($id); alert()->success('', 'Medication successfully deleted!'); return redirect('medication'); }