/** * Remove the specified resource from storage. * * @param int $id * * @return Response */ public function destroy($id) { $device = Device::find($id); if (!$device) { return $this->respondNotFound('Did not find the device you are looking for!'); } $device->delete(); return $this->respondNoContent(); }