[Vuejs]-Laravel middleware on a VueJS route

0👍

I have not worked with Laravel for about 6 years, but with Vue. I believe that this is because you never get into your Laravel route, since the Vue app is assembled, and it is therefore fully available in the browser.

It would be different if you loaded the component in the Vue router via lazy load.

component: () => import(/* webpackChunkName: "hello" */ './views/helo.vue')

I don’t know exactly how that works with Laravel. I use the Vue CLI tool. Hope this could help you a little.

Leave a comment