Answer the question
In order to leave comments, you need to log in
How to make a SPA application on Laravel and Vue Router?
In all the examples that I googled and the documentation shows something like:
const router = new VueRouter({
routes: [
{
path: '/user/:userId',
name: 'user',
component: User
}
]
})
Answer the question
In order to leave comments, you need to log in
SPA-SINGLE Page Application. Those. from the point of view of Laravel - you have ONE page on which you connect Vue.JS, and which itself already resolves the application's routing. Those. the correct option is in Laravel one route (like only /), and the rest in Vue.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question