I'm using Inertia and Vue 3 with Laravel. I need to know how to add global filters.
I tried to use this referrance but it didn't work.
app.js
createInertiaApp({
title: (title) => `${title} - ${appName}`,
resolve: (name) => require(`./Pages/${name}.vue`),
setup({el, app, props, plugin}) {
return createApp({render: () => h(app, props)})
.use(plugin)
.mixin({methods: {route}})
.mount(el);
},
});
titlemeant to be the filter? If not, please can you show what you "filter" you're trying to add.