コード例 #1
0
 public function destroyObject($id)
 {
     $object = Medication::destroy($id);
     return 200;
 }
コード例 #2
0
 /**
  * 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');
 }