Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Multiple instances of Laravel within a single project #1130

Open
MichelJonkman opened this issue Jan 7, 2025 · 1 comment

Comments

@MichelJonkman
Copy link

Feature Description

I have multiple Laravel project in a single project, sadly this cannot be changed. All dependencies are the same and a large part of the code is shared, but in the plugin it doesn't seem possible to set multiple roots or at least multiple folders for views.

If there's no way to do this currently then this is a request to add this feature! The main issue I've encountered so far is with views so if it's only possible for views then that's okay, even if that means that the autocomplete will include views from both folders.

@adelf
Copy link
Member

adelf commented Jan 9, 2025

Hello. It took some time to check the options. It's possible only if the view folders are inside the Laravel project folder. If they are, you can just add an "ide.json" file with

{
    "$schema": "https://laravel-ide.com/schema/laravel-ide-v2.json",
    "view": {
        "paths": [
            {
                "path": "relative_folder/path",
                "namespace": "optional"
            },
            {
                "path": "relative_folder/path2"
            }
        ]
    }
}

But it doesn't work for folder outside the Laravel project. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants