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": {
        "enabledPackages": {
            "laravel/passport": "12.0.0"
        },
        "inertia": {
            "pagePaths": [
                { "path": "/resources/js/Pages" }
            ]
        },
        "passport": {
            "scopes": {
                "read": "Read access",
                "write": "Write access"
            }
        },
        "livewire": {
            "namespaces": [
                { "classNamespace": "Modules\\Blog\\Livewire" }
            ]
        }
    }
}

packages.enabledPackages

A map of packageNameversion 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"
        }
    }
}