Forms & API requests (Laravel&Vue) #551
Unanswered
talelmishali
asked this question in
Help
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
Wondering how others in the community utilizing
$inertia.form
for an API request, I'll describe my use case and how I work with it at the moment.I have a checkout page where a user submits a form (new order), the controller generates a payment link, and returns it as part of
data
object. Upon success, opening a modal with aniframe
where thesrc
attribute is the generated payment link. At the moment I am usingaxios
.Checkout.vue
ApiOrderController.php
How would you go about it using Inertia without
axios
both on the server-side and the client-side?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions