Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ziggy vue 3

// app.js
createInertiaApp({
    resolve: name => require(`./Pages/${name}`),
    setup({ el, app, props, plugin }) {
        createApp({ render: () => h(app, props) })
            .use(plugin)
            .mixin({ methods: { route: window.route } })
            .mount(el);
    },
});
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #ziggy #vue
ADD COMMENT
Topic
Name
9+5 =