Answer the question
In order to leave comments, you need to log in
How to set up Laravel + Vue 3 routing?
Having trouble with routes in Laravel 8 & Vue 3. Basically, routing works fine, here is my routes file:
import {createRouter, createWebHistory} from 'vue-router'
import Home from "../comonents/Home";
import Articles from "../comonents/Articles";
import Laravel from "../comonents/Laravel";
const routes = [
{
path: '/',
name: 'Home',
component: Home
},
{
path: '/laravel',
name: 'Laravel',
component: Laravel
},
{
path: '/articles',
name: 'Articles',
component: Articles
},
]
const router = createRouter({
routes,
history: createWebHistory(process.env.APP_URL),
})
export default router;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question