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.
Source:stackexchange.com