Official Laravel Zed Extension: PHP &amp; Blade LSP | Mohamed Said        [  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png)   Mohamed Said Laravel Backend Engineer  ](https://msaied.com) [ Home ](https://msaied.com) [ Projects ](https://msaied.com/projects) [ Articles  ](https://msaied.com/articles) [ Certificates ](https://msaied.com/certificates) [ Contact ](https://msaied.com#contact-section) 

       [  ](https://github.com/EG-Mohamed)       

 [ Home ](https://msaied.com) [ Projects ](https://msaied.com/projects) [ Articles ](https://msaied.com/articles) [ Certificates ](https://msaied.com/certificates) [ Contact ](https://msaied.com#contact-section) 

  [ home ](https://msaied.com)    [ articles ](https://msaied.com/articles)    Official Laravel Zed Extension: LSP Support for PHP and Blade Files        On this page       1. [  Official Laravel Zed Extension Brings First-Party LSP Support ](#official-laravel-zed-extension-brings-first-party-lsp-support)
2. [  How to Install ](#how-to-install)
3. [  Configuration ](#configuration)
4. [  Official vs. Community Extension ](#official-vs-community-extension)
5. [  Editor Support Landscape ](#editor-support-landscape)
6. [  Key Takeaways ](#key-takeaways)

  ![Official Laravel Zed Extension: LSP Support for PHP and Blade Files](https://cdn.msaied.com/511/9a507c942d0051cc70a4c6769b27f734.png)

 [  Laravel ](https://msaied.com/articles?category=laravel) [  PHP ](https://msaied.com/articles?category=php)  #Laravel   #Zed   #LSP   #PHP   #Blade   #Developer Tools  

 Official Laravel Zed Extension: LSP Support for PHP and Blade Files 
=====================================================================

     4 Aug 2026      3 min read    ![Mohamed Said](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp)  Mohamed Said  

       Table of contents

1. [  01   Official Laravel Zed Extension Brings First-Party LSP Support  ](#official-laravel-zed-extension-brings-first-party-lsp-support)
2. [  02   How to Install  ](#how-to-install)
3. [  03   Configuration  ](#configuration)
4. [  04   Official vs. Community Extension  ](#official-vs-community-extension)
5. [  05   Editor Support Landscape  ](#editor-support-landscape)
6. [  06   Key Takeaways  ](#key-takeaways)

 Official Laravel Zed Extension Brings First-Party LSP Support
-------------------------------------------------------------

The Laravel team published an official extension for the [Zed editor](https://zed.dev/extensions/laravel-official) on July 30, 2026. Version 0.1.0 landed in Zed's extension registry and connects **Laravel LSP** — the first-party language server announced at Laracon US 2026 — directly to the editor.

Once installed, you get the following LSP features in your PHP and Blade files:

- **Completions** for config keys, route names, view paths, translation strings, middleware, container bindings, Livewire components, and Inertia pages
- **Hover information** on Laravel-specific symbols
- **Diagnostics** that flag references to config keys, routes, or views that don't exist
- **Document links** and **code actions**

How to Install
--------------

Installation is straightforward. Open Zed's command palette and run `zed: extensions`, search for **Laravel (Official)**, and click **Install**. You do not need to install `laravel/lsp` separately — the extension downloads the language server binary automatically and checks for updates at most once every two hours.

Configuration
-------------

No configuration is required out of the box. If you need to pass initialization options to the server, add them under `lsp.laravel.initialization_options` in your Zed settings file:

```json
{
  "lsp": {
    "laravel": {
      "initialization_options": {
        "phpEnvironment": "sail"
      }
    }
  }
}

```

The `phpEnvironment` option tells the language server which PHP command to use when indexing your project. It defaults to `auto`, which probes Herd, Valet, Sail, Lando, DDEV, and then a locally installed PHP binary in that order. Every individual LSP feature can also be toggled through the same `initialization_options` object; the full reference is available in the [Laravel LSP GitHub repository](https://github.com/laravel/lsp).

Official vs. Community Extension
--------------------------------

This is not the only Laravel extension available for Zed. Mike Bronner's community Laravel extension remains actively developed and takes a fundamentally different approach:

| | Official (Laravel LSP) | Community | |---|---|---| | **How it works** | Runs PHP scripts inside your project to query the framework directly | Parses files with tree-sitter; never executes your application | | **Requires PHP env** | Yes (`phpEnvironment` option) | No | | **Framework awareness** | Deep (routes, views, config, bindings, etc.) | Static analysis only |

The community extension's README recommends against running both extensions simultaneously, so choose the one that best fits your workflow.

Editor Support Landscape
------------------------

With this release, Zed joins **Sublime Text**, **Cursor**, and the **Laravel VS Code extension** as editors with official Laravel LSP support. Neovim and OpenCode users can also point at the same language server binary with a few lines of configuration.

Key Takeaways
-------------

- The official Laravel Zed extension (v0.1.0) was released on July 30, 2026.
- It bundles and auto-updates the Laravel LSP binary — no separate install needed.
- Provides completions, hover info, diagnostics, document links, and code actions for PHP and Blade.
- The `phpEnvironment` setting controls which PHP runtime the server uses for project indexing.
- Avoid running it alongside the community Zed extension at the same time.
- The extension is MIT licensed; source is on [laravel/zed-extension](https://github.com/laravel/zed-extension).

---

*Source: [Official Laravel Zed Extension: LSP for PHP &amp; Blade — Laravel News](https://laravel-news.com/laravel-zed-extension)*

 Found this useful?

          [  ](https://twitter.com/intent/tweet?url=https%3A%2F%2Fmsaied.com%2Farticles%2Fofficial-laravel-zed-extension-lsp-support-for-php-and-blade-files&text=Official+Laravel+Zed+Extension%3A+LSP+Support+for+PHP+and+Blade+Files) [  ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fmsaied.com%2Farticles%2Fofficial-laravel-zed-extension-lsp-support-for-php-and-blade-files) 

 Frequently Asked Questions 
----------------------------

  3 questions  

     Q01  Do I need to install laravel/lsp separately to use the official Laravel Zed extension?        No. The extension downloads the Laravel LSP binary automatically and checks for updates at most once every two hours, so no manual installation of the language server is required. 

      Q02  Can I run the official Laravel Zed extension alongside the community Laravel extension for Zed?        The community extension's README recommends against running both at the same time, as they take different approaches to providing Laravel intelligence. Pick the one that suits your workflow. 

      Q03  What does the phpEnvironment option do in the Laravel Zed extension settings?        It tells the language server which PHP runtime to use when indexing your project. The default value is 'auto', which tries Herd, Valet, Sail, Lando, DDEV, and then a local PHP binary in that order. You can set it explicitly to a value like 'sail' if needed. 

  Continue reading

 More Articles 
---------------

 [ View all    ](https://msaied.com/articles) 

 [ ![Practical RAG in Laravel: pgvector, Embeddings, and Retrieval-Augmented Generation](https://cdn.msaied.com/681/08058424f0e8433b83d9008c6b701cd8.png) laravel ai pgvector 

### Practical RAG in Laravel: pgvector, Embeddings, and Retrieval-Augmented Generation

Build a production-ready RAG pipeline in Laravel using pgvector, OpenAI embeddings, and a clean retrieval laye...

  ![Mohamed Said](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp)  Mohamed Said 

 19 Sep 2026     4 min read  

  Read    

 ](https://msaied.com/articles/practical-rag-in-laravel-pgvector-embeddings-and-retrieval-augmented-generation) [ ![Gate Responses, Policy Before-Hooks, and Ownership Guards in Laravel](https://cdn.msaied.com/680/65326929bb7b3e15cee4d9753000eddc.png) laravel authorization security 

### Gate Responses, Policy Before-Hooks, and Ownership Guards in Laravel

Beyond simple true/false gates: learn how to return rich Gate responses, intercept policies with before-hooks,...

  ![Mohamed Said](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp)  Mohamed Said 

 19 Sep 2026     3 min read  

  Read    

 ](https://msaied.com/articles/gate-responses-policy-before-hooks-and-ownership-guards-in-laravel) [ ![Fresh: A Laravel Package Skeleton with Testbench, CI, and Boost Integration](https://cdn.msaied.com/679/6e34855eba64d6cc443c5cb2e7d17555.png) Laravel Package Development Orchestra Testbench 

### Fresh: A Laravel Package Skeleton with Testbench, CI, and Boost Integration

Fresh is an opinionated Laravel package skeleton by Mazen Touati that ships with PHPUnit, Larastan, Rector, Pi...

  ![Mohamed Said](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp)  Mohamed Said 

 18 Sep 2026     3 min read  

  Read    

 ](https://msaied.com/articles/fresh-a-laravel-package-skeleton-with-testbench-ci-and-boost-integration) 

   [  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png)   Mohamed Said Laravel Backend Engineer  ](https://msaied.com)Senior Backend Engineer specializing in Laravel, scalable SaaS platforms, APIs, and cloud infrastructure. I build secure, high-performance web applications that help businesses grow.

Explore

- [Home](https://msaied.com)
- [Projects](https://msaied.com/projects)
- [Articles](https://msaied.com/articles)
- [Certificates](https://msaied.com/certificates)
- [Contact](https://msaied.com#contact-section)

Connect

- [   hello@msaied.com ](mailto:hello@msaied.com)
- [   +20 109 461 9204 ](tel:+201094619204)

© 2026 Mohamed Said. All rights reserved.

 [  ](https://github.com/EG-Mohamed) [  ](https://www.linkedin.com/in/msaiedm/) [  ](https://wa.me/201094619204) [  ](mailto:hello@msaied.com) [  ](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)
