News

PestPHP Intellisense in Laravel VS Code Extension v1.7.0

Published
PestPHP Intellisense in Laravel VS Code Extension v1.7.0 image

Laravel VS Code Extension v1.7.0 brings PestPHP intellisense with autocomplete for custom expectations and test configurations, a new "Go to route" command, common Artisan commands with terminal execution, and support for new Laravel 13 attributes.

  • PestPHP intellisense with docblock generation
  • "Go to route" command palette action
  • Common Artisan commands with terminal execution
  • Laravel 13 attribute support
  • Bug fixes and consistency improvements

What's New

PestPHP Intellisense

The extension now inspects your project's Pest configuration and generates helper docblocks that preserve the correct $this type inside Pest hooks and tests. It also exposes custom expectation methods, giving you autocomplete for pest()->extend(...), pest()->use(...), and custom expectations.

The generated docblocks are stored in storage/framework/testing/_pest.php and ignored by git.

PR: #632

"Go to Route" Command

A new command palette action, Laravel: Go to route, opens a picker listing all application routes and navigates directly to the selected route handler. Routes can be searched by path or name.

PR: #633

Common Artisan Commands With Terminal Execution

This release adds a curated set of common Artisan commands to the command palette with terminal-based execution. Commands run in a dedicated "Laravel Artisan" terminal so you can see output directly in VS Code. The list includes commands for migrations, database tools, queue management, caching, tinker, route listing, and more.

PR: #629

Laravel 13 Attribute Support

The extension now provides autocompletion, linking, hovering, and diagnostics for new Laravel 13 attributes, including:

  • Routing attributes: Authorize, Middleware, and RedirectToRoute
  • Eloquent model attributes: Fillable, Guarded, Hidden, Visible, and Appends

PR: #626, contributed by @N1ebieski

Bug Fixes and Improvements

  • Fixed model template generation for snake_case relations (#627)
  • Polished Pest helper file generation (#635)
  • Consistent command casing throughout the extension (#636), contributed by @joetannenbaum

References

Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Sponsored

laravelcloud logo
Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Visit Laravel Cloud

The latest

View all →
Sidecar Brings Statamic's Control Panel to Your Existing Markdown Sites image

Sidecar Brings Statamic's Control Panel to Your Existing Markdown Sites

Read article
Collections chunkBy() and Storage Path Hardening in Laravel 13.30 image

Collections chunkBy() and Storage Path Hardening in Laravel 13.30

Read article
Forte: Parse and Rewrite Laravel Blade Templates image

Forte: Parse and Rewrite Laravel Blade Templates

Read article
Compoships: Eloquent Relationships on Multiple Columns image

Compoships: Eloquent Relationships on Multiple Columns

Read article
MKSine: A Filament CMS with Plugins, Themes, and Blocks image

MKSine: A Filament CMS with Plugins, Themes, and Blocks

Read article
Cancel In-Flight Form Submissions in Inertia.js v3.7 image

Cancel In-Flight Form Submissions in Inertia.js v3.7

Read article