Currently, I am utilizing Laravel, Blade, and Vue.js. My goal is to send a prop from a Vue.js component along with all the other form data. However, I am facing an issue because the main part of the form resides in Blade while the prop containing an array of objects is within a Vue component. Since the prop is not stored within an input field, I cannot retrieve it when the form is submitted.
I understand that I could send the array through axios, but in order for this approach to work, I would need to include the entire form within the Vue component. This is not ideal for me as I have two separate Vue components within the form.
My question is, is there a way to make the component "return" the array like a value of an HTML input field when the form is submitted? The idea is to keep the basic form inputs in the Blade file and have custom Vue components in their own respective files.
I'm hesitant about copying the entire form into the Vue component as it feels fundamentally wrong to me - although I may be mistaken :) Any insights on this matter would be greatly appreciated!