0
I have a project in Laravel
and Vue.js
where I have a role in Vue.js
that sends a post with the data of a form, so far so good, only when the function this.$http.post()
makes the request for the back-end, the Variable directs to the wrong method, it should send to the method store
(that handles post requests), but sends to index method(responsible for GET requests), one detail is that I am using RestFull Controllers
, then all methods are being accessed based on the request being made(or at least it should be so).
One detail is that locally in the machine that I use to develop works perfectly, and in another local server machine, also works perfectly, now put this project in the Amazon production server happens what I reported above.
The settings are as follows::
Local machine
PHP 5.6.28
Local Server
PHP 7.0
Amazon Server(EC2)
PHP 5.6.30
What could be going on? I’ve really thought of several possibilities and I have no idea what it might be.
Edit the question and add the codes referring to the problem, such as the JS code that makes the request and the code of the Laravel controller that has the methods
index
andstore
.– Woss