Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>laravel intellisenseNew to Visual Studio Code? Get it now.
laravel intellisense

laravel intellisense

Mohamed Benhida

|
401,931 installs
| (22) | Free
Laravel intellisense for Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Laravel Intellisense

demo

Features

Autocompletion

  • Eloquent Model Attributes
  • Model Relationships
  • Views
  • Config
  • Routes
  • Translations
  • Validation Rules
  • Resources
  • Factories

Navigation

  • Go to Definition
  • Hover Documentation

Tools

  • Laravel Ide Helper
  • Docker Support

Eloquent Autocompletion

Get autocompletion for model attributes when using Eloquent query methods.

model

model

Supported patterns:

// Static calls
User::where('|')

// Chained queries
User::query()->where('|')

// Variable tracking
$user = User::query();
$user->where('|')

// Multi-line queries
User::where(
    '|'
)

Relationship Autocompletion

Model relationships are now included in autocomplete results, showing:

  • Relationship type (HasMany, BelongsTo, etc.)
  • Related model name
  • Usage examples
$user->posts()  // HasMany → Post
$post->author() // BelongsTo → User

Validation Rules Autocompletion

Get autocompletion for Laravel validation rules with 100+ built-in rules.

$request->validate([
    'email' => 'required|email|unique:users',
    'age' => 'required|integer|min:18',
]);

Rules are categorized by type with rich documentation and examples.

View Autocompletion

model

Supported functions:

  • view('...')
  • View::make('...')
  • @extends('...')
  • @include('...')
  • @component('...')
  • @each('...')

Config Autocompletion

model

Supported functions:

  • config('...')
  • Config::get('...')

Route Autocompletion

model

Translate Autocompletion

model

Supported functions:

  • __('...')
  • trans('...')
  • trans_choice('...')
  • @lang('...')

Resource Autocompletion

Get autocompletion for $this-> in API Resource classes.

resource

Factory Autocompletion

model


Go to Definition

Cmd+Click (Mac) or Ctrl+Click (Windows/Linux) to jump to definitions:

Context Destination
view('users.index') resources/views/users/index.blade.php
route('users.show') Route definition in routes/*.php
config('app.name') config/app.php at the name key
__('messages.welcome') resources/lang/en/messages.php

Hover Documentation

Hover over Laravel code to see rich documentation:

  • Routes: URL, HTTP methods, middleware, controller
  • Views: File path and code preview
  • Config: File location and current value
  • Models: Attributes and relationships list

Laravel Ide Helper

Generate IDE helper files for better autocompletion. Run the command:

Generate Ide Helper

Or use laravel-ide-helper directly for more customization.


Configuration

Model Namespace

Set your model namespace in Settings > Extensions > Laravel Intellisense > Model

Default: App\Models

PHP Path

Set custom PHP executable path in Settings > Extensions > Laravel Intellisense > PHP Path

Default: php

Useful when PHP is not in your system PATH.

Docker

If using Docker, set the container command in Settings > Extensions > Laravel Intellisense > Docker

Example:

docker exec app

Or for Laravel Sail:

sail

Requirements

  • Working database connection in your Laravel project
  • PHP accessible from command line (or configure Docker/PHP Path)

Issues & Contributions

Report issues or contribute at GitHub

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