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

jackkitley's avatar

Laravel inertia js with vue and adding modules with separate inertia build

I currently have a crm built with Laravel inertia and vue. I use vite to build for production and thats how the current process works.

I now need a retail part of the site and decided to add laravel modules. I created a new module which comes with a vite.config.js file.

This retail module needs to work with SSR enabled.

Im strugging to build my module so it runs independently from the CRM site. Its a struggle to get it the vue files to reference correctly from the module controllers because everything is based on the parent resources/js/app.js file. I want to re-use code, components etc but i keep running into blockers.

Is this possible to be done?

Something like this

https://ibb.co/hmks1Q8

0 likes
1 reply

Please or to participate in this conversation.