If we use this method, it will definitely get an error 404 not found which means it can't find the file. Changing proxyTable in config/index.js also doesn't work. So that axios post can work, I use a docker to run a web server for php. And that works well. Okay, now we install the docker first.
Create a folder for the docker
mkdir projectscd projects
Note :
If in the fourth step fails, it means your web server is in conflict with another web server that is running. Then, turn off the web server.
sudo service nginx stopsudo service mysql stop
Until here, restart vue js with a different terminal.
npm run dev
Try running Vue again in the browser.
Surely you will see the port that is run vue changed to localhost: 8081. Why is that? Because port 8080 is used phpmyadmin on the docker.
If we use this method, it will definitely get an error 404 not found which means it can't find the file. Changing proxyTable in config/index.js also doesn't work. So that axios post can work, I use a docker to run a web server for php. And that works well. Okay, now we install the docker first.
mkdir projects
cd projects
git clone https://github.com/Laradock/laradock.git
cd laradock
Note : If in the fourth step fails, it means your web server is in conflict with another web server that is running. Then, turn off the web server.
sudo service nginx stop
sudo service mysql stop
Until here, restart vue js with a different terminal.
npm run dev
Try running Vue again in the browser. Surely you will see the port that is run vue changed to localhost: 8081. Why is that? Because port 8080 is used phpmyadmin on the docker.