A powerful Visual Studio Code extension to streamline Laravel development by allowing you to find routes and jump to controller methods with ease.
🚀 Features
Find Laravel Routes
Quickly generate a list of all your Laravel routes.
See details like:
Route name
Controller name
Method name
Location of route file
Location of controller file
Exact method location
Jump to Controller Method
Go directly to the line where the method is defined within the controller.
Avoid manually searching through large controller files.
Handles nested directories and finds the right controller file for you.
Fully Integrated with VS Code
Simple keyboard shortcuts for route lookup and jumping to methods.
Displays routes in an intuitive table format inside VS Code.
🖥️ Installation
Open Visual Studio Code.
Go to Extensions (or press Ctrl+Shift+X).
Search for "Laravel Controller Method Finder" and click Install.
Reload your VS Code window.
Alternatively, you can install the extension from the VS Code marketplace by running:
ext install laravelcontrollermethodfinder
⌨️ Keyboard Shortcuts
All Laravel Routes: Ctrl + Alt + R (Windows/Linux), Cmd + Alt + R (macOS)
Go to Controller Method: Ctrl + Alt + G (Windows/Linux), Cmd + Alt + G (macOS)
🎯 Usage
Open any Laravel project in VS Code.
Run the command "Find Laravel Routes to Controller" from the command palette or use the shortcut Ctrl + Alt + R.
This will generate a table of routes mapped to controllers and methods.
Click on any route or use the "Go to Controller Method" command (Ctrl + Alt + G) when inside a route file to jump directly to the corresponding controller method.
💻 Contributing
We welcome contributions! Feel free to fork this repository and submit pull requests for bug fixes or new features.