/** * Display a listing of the resource. * * @return Response */ public function index() { // $respuesta["registros"] = Preguntas::all()->toArray(); $respuesta["mensaje"] = "Registros Obtenidos"; $respuesta["resultado"] = true; return $respuesta; }