Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

successdav's avatar

How to handle name routes with inertiajs

I love the concept of name routes in Laravel, but I can't figure out how to use name routes with inertia js.

0 likes
4 replies
Sinnbeck's avatar

@benjamin1509 you don't need this (I use react)

mix.alias({
    ziggy: path.resolve('vendor/tightenco/ziggy/dist'), // or 'vendor/tightenco/ziggy/dist/vue' if you're using the Vue plugin
}); 
1 like

Please or to participate in this conversation.