[Vuejs]-Axios post method fails with status code 500 with Laravel

0👍

Thanks to the help of @rickdenhaan and @adam, I found that my output in the controller showed data from my database. While it seems like that there are quite a few reasons you might get a 500 response from an Axios call, my case was that I was passing the incorrect array to the call with data that didn’t have anything to do with my form data and I also was binding the data in the form to the incorrect array.

Leave a comment