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 →
PhpStorm 2026.2 Released image

PhpStorm 2026.2 Released

Read article
Laravel Doctor: Diagnose Your App With One Artisan Command image

Laravel Doctor: Diagnose Your App With One Artisan Command

Read article
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article
Laravel AI SDK Adds Human-in-the-Loop Tool Approval image

Laravel AI SDK Adds Human-in-the-Loop Tool Approval

Read article
Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals image

Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals

Read article
Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs image

Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs

Read article