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

serpapi logo
SerpApi

The Web Search API for Your LLM and AI Applications

Visit SerpApi

The latest

View all →
Pause All Laravel Queues During a Deploy image

Pause All Laravel Queues During a Deploy

Read article
Laravel Terminal UI for the artisan dev Command image

Laravel Terminal UI for the artisan dev Command

Read article
Pause All Queues and a New artisan dev UI in Laravel 13.25 image

Pause All Queues and a New artisan dev UI in Laravel 13.25

Read article
Laravel monitoring that doesn't bill you by your traffic image

Laravel monitoring that doesn't bill you by your traffic

Read article
Mock PHP Classes in Tests With the Double Library image

Mock PHP Classes in Tests With the Double Library

Read article
Laravel Discount: Coupon Codes, Usage Limits, and Stacking image

Laravel Discount: Coupon Codes, Usage Limits, and Stacking

Read article