Laravel (Official)
Official Laravel LSP integration.
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Laravel (Official). The extension's id is laravel-official.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
NOTICE
The extension is currently pending review for inclusion in the Zed extensions marketplace.
In the meantime, you can install it locally:
- Clone this repository.
- Ensure Rust is installed and available.
- In Zed, select
zed: install dev extensionfrom the command palette and choose the cloned repository.
Introduction
The Laravel Zed extension integrates the Laravel LSP server with Zed, providing completions, hover information, diagnostics, links, and code actions for your PHP and Blade files.
LSP Documentation
Documentation for Laravel LSP can be found in the Laravel LSP repository.
Installation
Open the Extensions page from the Zed command palette with zed: extensions, search for Laravel (Official), and select Install.
Configuration
No configuration is required by default.
To pass initialization options directly to the Laravel LSP server, configure lsp.laravel.initialization_options in your Zed settings:
{
"lsp": {
"laravel": {
"initialization_options": {
"phpEnvironment": "sail"
}
}
}
}
For the full list of available configuration options, see the Laravel LSP repository.
Updates
The extension checks for Laravel LSP updates at most once every two hours. On macOS, you can force an update check without waiting by removing the .last-update-check file:
rm "$HOME/Library/Application Support/Zed/extensions/work/laravel-official/laravel-lsp/.last-update-check"
Then run editor: restart language server from the command palette. This forces an update check, not necessarily a download. The extension downloads the latest release only when its binary is not already installed. This update mechanism is bypassed when a custom LSP binary is configured.
Contributing
Thank you for considering contributing to the Laravel Zed extension! The contribution guide can be found in the Laravel documentation.
Code of Conduct
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
The Laravel Zed extension is open-sourced software licensed under the MIT license.