Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

demonz's avatar

I want to submit array of objects it's urgent

Hello , I know by default layout inertia is having 1-const data 2-onHandleChange 3-submit event now let's assume we have a form and inside it is a table with multiple data. and I need to submit all these data. Can you provide me with example for the const data , handle change and submit event to submit multiple data Im Stuck

thanks

0 likes
4 replies
Tray2's avatar
Tray2
Best Answer
Level 73

Not sure what you mean but you can pass almost anything in JavaScript

let parameters = {
	objects: [
		object1,
		object2,
		object3
	]
};

fetch(url, { method: 'GET', headers: parameters}) ;
1 like
Sinnbeck's avatar

Maybe show what you have and which part isn't working?

1 like
demonz's avatar

forget about this post guys , i will try to solve it

1 like

Please or to participate in this conversation.