Setup Ziggy with Inertia and Vue #1018
Answered
by
ajnsn
jeroenvanrensen
asked this question in
Help (Vue)
-
Hello, I'm using Laravel and I want to setup Ziggy with Inertia and Vue. I installed the Ziggy composer package and added The Inertia documentation says I should add it to the Vue instance: Vue.prototype.$route = route However, I don't understand exactly to put it. This is my import { createApp, h } from 'vue'
import { createInertiaApp, Link } from '@inertiajs/inertia-vue3'
createInertiaApp({
resolve: name => require(`./Pages/${name}`),
setup({ el, App, props, plugin }) {
createApp({ render: () => h(App, props) })
.use(plugin)
.component('Link', Link)
.mount(el)
}
}) Hope anyone can help me out. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
ajnsn
Dec 23, 2021
Replies: 1 comment 3 replies
-
Hey @jeroenvanrensen - this may help: #822 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
jeroenvanrensen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @jeroenvanrensen - this may help: #822