コード例 #1
0
 /**
  * Remove the specified model device from storage.
  *
  * @param  int  $id
  * @return string
  */
 public function destroy($id)
 {
     $modeldevices = ModelDevice::find($id);
     if ($modeldevices != null) {
         $modeldevices->delete();
     }
     return json_encode("success");
 }