Skip to content

ide.json: Auth

Overview

The auth section lets you register additional gate names that Laravel Idea should recognize in gate/policy completions.

By default, Laravel Idea discovers gates defined in your AuthServiceProvider. If your package or custom code registers gates dynamically (e.g. at runtime), those names won't be found by static analysis. Use additionalGates to declare them explicitly.

additionalGates

A list of gate names to add to the gate/policy completion pool.

json
{
    "$schema": "https://laravel-ide.com/schema/laravel-ide-v2.json",
    "auth": {
        "additionalGates": [
            "manage-tenants",
            "access-admin-panel"
        ]
    }
}

These names will appear in all places where Laravel Idea completes gates and policies — Gate::allows(), @can, $this->authorize(), etc.