/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { // if (Preguntas::destroy($id)) { $respuesta["registros"] = []; $respuesta["mensaje"] = "Registro eliminado exitosamente"; $respuesta["resultado"] = true; return $respuesta; } else { $respuesta["registros"] = []; $respuesta["mensaje"] = "El registro no existe"; $respuesta["resultado"] = false; return $respuesta; } }