Let's say I use Vue and Axios to post data to a Laravel controller to, say, create a booking in a database. As part of the creation process, a booking reference is generated. I can return this reference as a signal to Vue that the POST request was successful. How can I grab this response to display the reference to the customer?
Well, I don't need to return the whole booking, just the reference would be fine, so I could display a thank you message, here's your reference number etc.
Yes. Returning the reference isn't the problem. It's getting it into my Vue instance I don't know how to do, given that it's a response to a POST request and not the results of a GET.