* "Go to Definition" and "Find All References" for config keys and env vars. * * Try: * 1. Ctrl+Click "app.name" to jump to config/app.php. * 2. Ctrl+Click "app.key" to jump to config/app.php, then Ctrl+Click env('APP_KEY') to .env. * 3. "Find All References" on "app.name" to see all usage sites (including Blade views). */
()
| 168 | * 3. "Find All References" on "app.name" to see all usage sites (including Blade views). |
| 169 | */ |
| 170 | public function laravelConfigEnv(): void |
| 171 | { |
| 172 | // Global helper |
| 173 | config('app.name'); |
| 174 | |
| 175 | // Facade methods |
| 176 | Config::get('app.name'); |
| 177 | Config::set('app.env', 'production'); |
| 178 | |
| 179 | // Config keys that use env() — Ctrl+Click jumps to the config file, |
| 180 | // then Ctrl+Click the env() call there to jump to .env |
| 181 | config('app.key'); // uses env('APP_KEY') |
| 182 | config('database.connections.mysql.password'); // uses env('DB_PASSWORD') |
| 183 | } |
| 184 | |
| 185 | |
| 186 | // ── Laravel View, Route & Translation Navigation ─────────────────────── |