Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Laravel IntelephenseNew to Visual Studio Code? Get it now.
Laravel Intelephense

Laravel Intelephense

Porifa

|
115,989 installs
| (6) | Free
Laraphense for Visual Studio Code is all in one (laravel blade snippets, laravel goto view, laravel goto components, laravel goto controller, laravel blade spacer)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Laraphense

Lararvel Intelephense is code intelligence for productive Laravel development.

Features

  • Show Suggestions based on the Laravel version
  • Auto-Completion
  • Namespace Import, Expand and Sorting
  • Files Creation
  • Go to View (Blade File)
  • Go to Component (PHP File)
  • Env File Syntax Highlighting
  • Curly Braces Spacer

Requirements

You Must have a workspace open having Laravel Installed.

Show Suggestions based on the Laravel version

  • Version History of Blade Directives
  • Version History of Validation Rules

Auto-Completion

  • Suggests Blade Directives
  • Suggests Livewire Component
  • Suggests Route names and route parameters
  • Suggests Views and variables
  • Suggests Configs keys
  • Suggests Translations and translation parameters
  • Suggests Laravel mix function
  • Suggests Validation rules
  • Suggests View sections and stacks
  • Suggests Env Variables
  • Suggests Route Middlewares
  • Suggests Asset in the public directory

Namespace Import, Expand and Sorting

  • Import a namespace by selecting a valid class name (from Command Platte, Context Menu or by pressing ctrl+alt+i)
  • Import all namespaces in the active file (from Command Platte, Context Menu or by pressing ctrl+alt+a)
  • Expand a namespace by selecting a valid class name (from Command Platte, Context Menu or by pressing ctrl+alt+e)
  • Sort imported namespaces in the active file (from Command Platte, Context Menu or by pressing ctrl+alt+s)
  • Generate namespace in the active file (from Command Platte, Context Menu or by pressing ctrl+alt+g)

Files Creation

  • Create View (Blade) Files by selecting a valid string
  • Auto Suggest creating a view file if already doesn't exist

Go To View

  • Go to view a blade file from blade and PHP files

Go To Class

  • Go to view a PHP class file from blade and PHP files

Env File Syntax Highlighting

  • Syntax Highlighting for environment files like (.env, .env.example)

Curly Braces Spacer

  • Add Spaces between curly braces

Extension Settings

These are the setting you can use.

Customize the Maximum number of scanning rows

"laraphense.maxLinesCount": 1000

default is 1000.

Add Custom Validation Rules as an object

"laraphense.customValidationRules": {}

for validation rule auto-completion.

Add Models path as an array

"laraphense.modelsPaths": ["app", "app/Models" ]

these 2 paths are included by default

Customize view file extensions

"laraphense.viewExtensions": [".blade.php", ".vue" ]

these 2 extensions are included by default

Customize view folders paths

"laraphense.viewFolders": {
                            "default": "/resources/views",
                            "js": "/resources/js/Pages",
                            "livewire": "/resources/views/livewire",
                            "vendor": "/resources/views/vendor"
                        }

these 3 extensions are included by default,

Add View Directory Separator

"laraphense.viewDirectorySeparator": "."

default is ".", you can use "/".

Enable/Disable creating a view file from any valid string

"laraphense.createViewEveryWhere": true

to enable or disable creating a view file from EveryWhere.

Enable/Disable Go To View

"laraphense.disableGoToView": false

If you want to disable the go-to view feature, set this to true.

Enable/Disable Go To Config

"laraphense.disableGoToConfig": false

If you want to disable the go-to config feature, set this to true.

Enable/Disable Assets Auto-Completion

"laraphense.disableAssetCompletion": false

If you want to disable assets autocomplete set this to true.

Enable/Disable Livewire Auto-Completion

"laraphense.disableLivewireCompletion": false

If you want to disable Livewire autocomplete set this to true.

Enable/Disable Auth Auto-Completion

"laraphense.disableAuthCompletion": false

If you want to disable auth autocomplete set this to true.

Enable/Disable Blade Auto-Completion

"laraphense.disableBladeCompletion": false

If you want to disable blade directives autocomplete set this to true.

Enable/Disable Controller Auto-Completion

"laraphense.disableControllerCompletion": false

If you want to disable Controller autocomplete set this to true.

Enable/Disable Config Auto-Completion

"laraphense.disableConfigCompletion": false

If you want to disable config autocomplete set this to true.

Enable/Disable Curly Braces Spacer

"laraphense.disableCurlyBracesSpacer": false

to enable or disable Curly Braces Spacer. By default, it is enabled

Enable/Disable Eloquent Auto-Completion

"laraphense.disableEloquentCompletion": false

If you want to disable Eloquent autocomplete set this to true.

Enable/Disable Env Auto-Completion

"laraphense.disableEnvCompletion": false

If you want to disable Env autocomplete set this to true.

Enable/Disable Middleware Auto-Completion

"laraphense.disableMiddlewareCompletion": false

If you want to disable Middleware autocomplete set this to true.

Enable/Disable Mix Auto-Completion

"laraphense.disableMixCompletion": false

If you want to disable Mix autocomplete set this to true.

Enable/Disable Route Auto-Completion

"laraphense.disableRouteCompletion": false

If you want to disable Route autocomplete set this to true.

Enable/Disable Translation Auto-Completion

"laraphense.disableTranslationCompletion": false

If you want to disable Translation autocomplete set this to true.

Enable/Disable Validation Auto-Completion

"laraphense.disableValidationCompletion": false

If you want to disable Validation autocomplete set this to true.

Enable/Disable View Auto-Completion

"laraphense.disableViewCompletion": false

If you want to disable View autocomplete set this to true.

Enable/Disable Leading Namespace Separator for Expanding Namespace

"laraphense.expandLeadingNamespaceSeparator": true

If you want to disable Expand class with a leading namespace separator then set this to false.

Enable/Disable showing Message On Status Bar

"laraphense.showMessageOnStatusBar": true

If you want to disable showing Message On Status Bar then set this to false.

Enable/Disable auto Sort After Importing Namespace

"laraphense.autoSortAfterImport": true

If you want to disable auto Sort After Import then set this to false.

Enable/Disable Auto sort when a file is saved

"laraphense.sortOnSave": false

If you want to enable Auto sort when a file is saved then set this to true.

Advance Configurations

Configure Regex for Matching view files

"laraphense.viewRegex": "(?<=view\\(['\"]|.view:.?['\"]|View::make\\(['\"]|nest\\(['\"](https://github.com/porifa/vscode-laraphense/blob/HEAD/.*)['\"],.?['\"]|@include\\(['\"]|@extends\\(['\"]|@component\\(['\"]|@livewire\\(['\"]|Inertia::render\\(['\"]|\\(component:.['\"]|\\<)(\\<x-|\\<livewire:|[^'\" \\>]+)"

this regex is used to match the view files for quick jumping.

Configure Regex for Creating view files

"laraphense.viewCreateRegex": "(?<=View::make\\(['\"]|view\\(['\"]|.view:.['\"]|Inertia::render\\(['\"]|\\(component:.['\"])([^'\"]+)"

this regex is used to match the view files for auto-suggestion.

Configure the PHP command like this

"laraphense.phpCommand": "php -r \"{code}\""

this command is used to run PHP for indexing Laravel files.

Exclude Namespaces

"laraphense.excludeNamespaces": "**/node_modules/**"

Exclude glob pattern while finding files for namespaces.

Configure the Base path like this

"laraphense.basePath": "/core"

this Base path is used to read files.

Configure the Code Base path like this

"laraphense.basePathForCode": "/core/laravel"

This base path is used for require_once inside the PHP code.

Credits

  • PHP parser
  • mkdirp

Recommended extensions

  • PHP Intelephense

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft