Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Laravel Goto ControllerNew to Visual Studio Code? Get it now.
Laravel Goto Controller

Laravel Goto Controller

ctf0

|
236,388 installs
| (3) | Free
Quick jump to controller
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Laravel Goto Controller

  • project have to be handled by Composer

v1.0.0

starting from v1.+, the extension will no longer do the below as Official laravel extension already does that, instead i will be adding extra functionality that probably wont be added to the main extension.

New Features

show route details on controller action in 3 modes (hover (always), code lens, line decoration).

  • both (hover & code lens) are clickable, line decoration is static.
  • you can view the middleware info & directly jump to it, just like the Official extension.

controller

connect both ends RateLimiter::for & throttle:

rate

support jumping to routes under a controller group

Route::prefix('forgot-password')
    ->controller(PasswordResetLinkController::class)
    ->group(function (): void {
        Route::get('/', 'create')->name('request');
        // ...
    });

Features

  • Controller
  • add method/action to clipboard if not found in controller ex."used through a trait"
  • supports controller definitions like
    • Route::get('/', 'index'); // will have list of all controllers with the same action name
    • Route::get('/', [PhotoController::class, 'index']);
    • Route::get('/', 'PhotoController@index');
    • Route::get('/', 'Something\PhotoController@index');
    • Route::resource('/photo', 'PhotoController');
  • Routes
  • to add project APP_URL, run Laravel GoTo Controller from the command palette.
  • popup will show both the route "uri & action"
    • uri: will open the link in browser "if route is a GET && APP_URL was added"
    • action: will open the controller file

Notes

  • the controller has to be following the laravel convention
  • Closure routes won't have a link
  • for the controller link to redirect to the correct place
    • make sure the terminal.integrated.scrollback is set to a big number ex.100000 or even more if you have a very long list, otherwise, you might get redirected to the wrong controller.
    • if the controllers still doesn't show up in the popup, try restarting the editor

Laravel v9+

with v9 the route listing cmnd has changed, so now u have a new config to get around this, u can set the config per project so u have the same experience regardless of the fw version.

// v8-
"laravelGotoController.routeListCommand": "artisan route:list --columns=uri,name,action,method --json",

// v9+
"laravelGotoController.routeListCommand": "artisan route:list --json",
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft