Skip to content

ide.json: Passport

packages.passport

Declares additional Laravel Passport OAuth scopes so they appear in completion.

FieldDescription
scopesA map of scopeNamescopeDescription.
scopeFilesAn array of paths to JSON files, each containing a scopeNamescopeDescription object.
json
{
    "$schema": "https://laravel-ide.com/schema/laravel-ide-v2.json",
    "packages": {
        "passport": {
            "scopes": {
                "users:read": "Users read access",
                "users:write": "Users write access"
            },
            "scopeFiles": [
                "/resources/data/passport-scopes.json"
            ]
        }
    }
}

scopeFiles paths follow the same resolution rules as other ide.json paths (absolute from the project root when started with /, otherwise relative to the folder containing ide.json).