Modules for LaravelModules for Laravel is a community-maintained fork of the Laravel VS Code
extension with first-class support for applications built with
This project is not affiliated with, endorsed by, or sponsored by Laravel LLC.
Laravel is a trademark of Laravel Holdings Inc. The original extension and
Laravel LSP are available from the
FeaturesThe extension provides the completions, hover information, diagnostics, links, code actions, Artisan commands, Pint integration, and test integration from the upstream extension. Its LSP fork additionally discovers enabled Laravel modules and their models, controllers, providers, configuration, views, Blade components, routes, and translations. Module-aware additions include:
The extension supports Laravel versions covered by the Laravel support policy and requires PHP 8.2 or later. InstallationInstall Modules for Laravel from the Visual Studio Marketplace, or build a VSIX locally:
This extension is a replacement for ConfigurationNo configuration is required for projects using the conventional To set a fallback module root explicitly:
Additional application model directories can be configured with:
By default, the LSP inspects discovered Eloquent models through
Classes referenced by
Changes to module, model, mixin, or database-inspection settings require a VS Code window reload. The standard PHP environment settings remain available:
For the complete list, open the extension settings in VS Code. LSP updatesThe extension downloads platform-specific binaries from the
For development, set Support and securityReport bugs and feature requests in this project's issue tracker. Please do not report fork-specific problems to the upstream Laravel repositories. For security-sensitive reports, follow this repository's security policy. MaintenanceSee the publishing guide for the release procedure for a new LSP binary and for the VS Code extension. LicenseThis project is distributed under the MIT license and preserves the attribution of the upstream Laravel VS Code extension. |