[Vuejs]-Laravel VueJS โ€“ Input value array returns strings instead of array

0๐Ÿ‘

I think you have to loop through all the products and return

<input type="hidden" :value="selectedProducts[index]" name="selectedProducts[]">

and then maybe add some identifier to the array like

<input type="hidden" :value="selectedProducts[index]" name="selectedProducts[`${product.id}`]">

Leave a comment