Laravel VueJs : `router-view` does not render the component

You need to declare your base path in touter config like this :

export default new VueRouter({
  mode:'history',
  routes:[

    { path: '/:listing', component: ListingPage, name: 'listing' }
  ],
  base:'/listing',
  root:"https://stackoverflow.com/",

});

Leave a Comment