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
什么是新的
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.
公关稿: #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.

公关稿: #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.

公关稿: #629
Laravel 13 Attribute Support
The extension now provides autocompletion, linking, hovering, and diagnostics for new Laravel 13 attributes, including:
- Routing attributes:
Authorize,Middleware, 和RedirectToRoute - Eloquent model attributes:
Fillable,Guarded,Hidden,Visible, 和Appends
公关稿: #626 , contributed by @N1ebieski
错误修复和性能改进
- 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





