[Vuejs]-Vuejs: 400 BAD REQUEST on patch ajax with vue-resoure and Laravel

0👍

Check if the problem is persistent on your local server AS WELL AS your live server.

In this case the problem was only on the local server. Then just do this:
Stop artisan’s serve, and execute: php artisan cache:clear

Then try again: php artisan serve and the problem should be solved.

The problem might be caused because of a program like CodeKit. Even though your php artisan serve would serve on ip 8000, CodeKit changes this for auto reload reasons. This messes up the ajax call uri’s.

Leave a comment