M
M
maiskiykot2021-06-06 19:31:09
Laravel
maiskiykot, 2021-06-06 19:31:09

How to pass an array with datables?

I'm tinkering with the project. The author built everything on Yajra Datatables. On the one hand, not bad, but on the other hand, there are so many hemorrhages with the transfer of non-standard data. For example, I just can’t figure out how to put an array of data like product:time into one field, and there can be several products. How to process array on js side? Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maiskiykot, 2021-06-07
@maiskiykot

Unfortunately, none of the examples of the vendor itself did not start. I had to do a banal foreach in the controller and return formatted data. On the js side, I stupidly disassembled it into components and brought it into the field. It was worth it? We will see. If someone has other solutions - wellcome!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question