Laravel Precognition - Array Validation #47419
Unanswered
chrisreedio
asked this question in
Q&A
Replies: 1 comment
-
Hi. Your Laravel code will work correctly. You have to make JS request. I suggest you to make an object for addresses and put it in body request Solution 1 const addresses = ref({
"hotel": {
"id": 1,
"type": 2,
"street": "street name",
"city": "city name",
"state": "state name",
"zip": null
},
"office": {
"id": 1,
"type": 2,
"street": "street name",
"city": "city name",
"state": "state name",
"zip": null
}
})
// post function name is post_request
post_request( 'url', { "addresses": addresses.value } ) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have Laravel Precognition working in my application that uses Inertia.js and Vue3 for simple, root level form inputs.
How do I properly handle array inputs such address below?
Thanks for any insight into this! I checked the documentation for this but couldn't find anything.
Beta Was this translation helpful? Give feedback.
All reactions