[Feature Request]: Support for Nx.dev monorepo with multiple Laravel apps
Feature Description
Hello,
We use Nx.dev to manage a monorepo containing multiple Laravel applications in the apps/ folder. This allows us to share code, maintain consistent tooling, and manage dependencies across projects. However, Laravel Idea doesn't recognize these Laravel apps, breaking IDE features like Inertia helpers, route completion, and config suggestions.
We want to open our phpstorm and everything works
Problem:
- Laravel Idea only looks for Laravel at the project root
- No helper generation for apps in subdirectories
- IDE features don't work (no autocompletion for routes, configs, Inertia components, etc.)
Project Structure:
monorepo/
├── nx.json
├── apps/
│ ├── admin-panel/ (Laravel app)
│ ├── customer-app/ (Laravel app)
│ └── api-service/ (Laravel app)
Requested Feature:
Allow Laravel Idea to detect and support multiple Laravel applications within subdirectories, particularly for monorepo setups. Each app should have its own generated helpers and full IDE support.
#Thank you for taking the time to share your request! I've added it into internal feature tracker.
This would be a great feature, as I also have a monorepo for package management. Although I do wonder how you would switch context with Laravel Idea. Maybe a menu option to switch between packages 🤔
@braedenfoster I think we should switch, it should generate for each laravel app their own context
It's possible to implement, but it will touch almost every part of the plugin code. Instead of getting one "Laravel project" object as we do now, we should analyze the file name and retrieve the correct "Laravel project" object. Huge changes... I don't know when we will implement them.