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

thesnakebite's avatar

Multiples sites Laravel e Inertia with Vite

I'm building a SPA with Laravel 10, Blade and Inertia Vue3 and Vite. The application has the adminLTE side for managing users, roles, bolg posts, etc... and the front side to view the posts published by users, and I want to split app.js for each purpose, which means that each site will have separate app.js. Maybe it is not the best way to act, that is why I ask how I could handle it, I use a template acquired for the front where it contains its styles and its JS part and in the same way for the admin. If I'm wrong, how can I put it forward?

0 likes
0 replies

Please or to participate in this conversation.