[Vuejs]-Axios request from Vue gets a 404

0👍

looks like you have a /skills route,

Route::get('skills', function () {
    return ['Laravel', 'tooling', 'PHP', 'Javascript'];
});

I don’t see a route for http://localhost:8000/vue-app/public

could try adding

Route::get('', function () {
    return ['home', 'route', 'was', 'missing'];
});

to have the route available

0👍

The route you created /skills will only work with this url.

If you intend to print something in another route, it must be declared too.

Please, apologize if you already did that, but this is not present in your question.

See the below code:

Route::get('', function () { 
    return ['Laravel', 'tooling', 'PHP', 'Javascript'];
});

Leave a comment