The Laravel VS Code extension integrates the Laravel LSP server with Visual Studio Code, providing completions, hover information, diagnostics, links, and code actions for your PHP and Blade files.
The extension supports all Laravel versions currently listed under the support policy and requires PHP 8.2 or later.
Documentation for Laravel LSP can be found in the Laravel LSP repository.
Open the Extensions view in Visual Studio Code, search for "Laravel", and select Install.
No configuration is required by default.
To choose the PHP environment used by the Laravel LSP server, configure Laravel.phpEnvironment in your Visual Studio Code settings:
{
"Laravel.phpEnvironment": "sail"
}For the full list of available configuration options, open the extension's settings in Visual Studio Code.
The extension checks for Laravel LSP updates at most once every two hours. To force an update check without waiting, run Laravel: Update LSP from the command palette.
Thank you for considering contributing to the Laravel VS Code extension! The contribution guide can be found in the Laravel documentation.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
Please review our security policy on how to report security vulnerabilities.
The Laravel VS Code extension is open-sourced software licensed under the MIT license.