Laravel support for Sublime Text, powered by Laravel LSP.
The Laravel Sublime Text extension integrates the Laravel LSP server with Sublime Text, providing completions, hover information, diagnostics, links, and code actions for your PHP and Blade files.
Documentation for Laravel LSP can be found in the Laravel LSP repository.
Install the LSP package from Package Control, then search for “LSP-Laravel” and select Install.
For Blade files, also install the Laravel Blade package from Package Control.
No configuration is required by default.
To pass initialization options directly to the Laravel LSP server, open Preferences → Package Settings → LSP → Servers → LSP-Laravel and configure initialization_options:
{
"initialization_options": {
"phpEnvironment": "sail"
}
}
For the full list of available configuration options, see the Laravel LSP repository.
The extension checks for Laravel LSP updates at most once every two hours. To force an update check without waiting, run LSP-Laravel: Update Laravel LSP Server from the command palette.
Thank you for considering contributing to the Laravel Sublime Text 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 Sublime Text extension is open-sourced software licensed under the MIT license.