A simple example of combining Laravel and Vite, where the admin panel and client sections are separated.
for admin panel (dev , build and build for ssr) :
npm run dev:admin
npm run build:admin
npm run build:admin-ssr
build and build ssr (for production) :
npm run admin:serve
for client (dev , build and build for ssr) :
npm run dev:client
npm run build:client
npm run build:client-ssr
build and build ssr (for production) :
npm run client:serve
serve ssr file (useful for SEO) :
php artisan inertia:start-ssr