Server does not receive full JS fix

0

I'm developing an application in Laravel, at a certain point I had to use an array of objects to store the information that is going to be sent to the server, the problem I'm having is that I build my array but at a certain point that the array is very large, not all information is sent to the server, even when the arrangement is well built.

This is the code I am using to send the information by ajax.

data: $('#account_status_form :not(.test_checkbox)').serialize() + '&' +
      $.param({
         binomios: nuevos,
         servicios_caballo: unique_horses,
         deleted_inscriptions: deleted_inscriptions,
         _token: '{{ csrf_token() }}'
      }),

The arrangement that is generated is something like this:

(43)[{
    active: "1",
    caballo_id: 1,
    caballo_nombre: "HIDALGO",
    jinete_id: "1",
    prueba_categoria_id: "1",
    …
}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]

That information comes in handy, but if I add a new object to the fix, the information of that last object does not come complete

Does anyone have any idea what the problem might be and how to fix it?

    
asked by Agares 31.08.2018 в 09:07
source

1 answer

1

I managed to solve my problem.

It was enough to increase the value of max_input_vars in the php.ini, in my case I'm using a hosting service, so I had to contact technical support.

That was enough to send all the data and be able to process it.

Thanks to everyone for their ideas.

    
answered by 12.09.2018 / 16:58
source