plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Feature Request]: Support for Nx.dev monorepo with multiple Laravel apps

Open b-barry opened this issue 5 months ago • 4 comments

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.

b-barry avatar Aug 01 '25 16:08 b-barry

#Thank you for taking the time to share your request! I've added it into internal feature tracker.

gorbunov avatar Aug 02 '25 07:08 gorbunov

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 avatar Aug 04 '25 19:08 braedenfoster

@braedenfoster I think we should switch, it should generate for each laravel app their own context

b-barry avatar Aug 11 '25 12:08 b-barry

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.

adelf avatar Aug 11 '25 13:08 adelf