Skip to content

ide.json: Packages ​

Overview ​

The packages section groups together configuration for specific Laravel packages that Laravel Idea has dedicated support for. It currently contains:

json
{
    "$schema": "https://laravel-ide.com/schema/laravel-ide-v2.json",
    "packages": {
        "inertia": {
            "pagePaths": [
                { "path": "/resources/js/Pages" }
            ]
        },
        "passport": {
            "scopes": {
                "read": "Read access",
                "write": "Write access"
            }
        },
        "livewire": {
            "namespaces": [
                { "classNamespace": "Modules\\Blog\\Livewire" }
            ]
        },
        "enabledPackages": {
            "laravel/passport": "12.0.0"
        },
        "disabledPackages": [
            "laravel/passport"
        ]
    }
}

packages.enabledPackages ​

A map of packageName → version that tells Laravel Idea to treat the given packages as installed with the given version, even when they are not detected from composer.json. This is useful for non-standard setups (monorepos, vendored packages, etc.) where package detection does not work automatically.

json
{
    "$schema": "https://laravel-ide.com/schema/laravel-ide-v2.json",
    "packages": {
        "enabledPackages": {
            "laravel/passport": "12.0.0",
            "livewire/livewire": "3.5.0"
        }
    }
}

packages.disabledPackages ​

An array of strings that tells Laravel Idea to treat the given packages as not installed, even when they are detected from composer.json.

json
{
    "$schema": "https://laravel-ide.com/schema/laravel-ide-v2.json",
    "packages": {
        "disabledPackages": [
            "laravel/passport",
            "livewire/livewire"
        ]
    }
}