ide.json: Packages
Overview
The packages section groups together configuration for specific Laravel packages that Laravel Idea has dedicated support for. It currently contains:
enabledPackages— force-enable packages and their versions.livewire— Livewire component namespaces.inertia— Inertia.js page resolution.passport— Laravel Passport scopes.
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 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"
}
}
}