Laravel RouteMap is a Visual Studio Code extension designed to help Laravel developers visualize their application routes in an interactive graph format.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
RouteMap is a Visual Studio Code extension designed to help Laravel developers visualize their application routes in an interactive graph format. This extension renders routes, their HTTP methods, URIs, controllers, middlewares, and relationships as a dynamic graph. This visualization makes understanding route flow, middleware application, and controller connections intuitive and efficient.
The extension supports filtering routes by URI patterns, enabling quick navigation and focused analysis of specific route groups.
Features
Visualize Laravel routes as an interactive graph.
Display HTTP methods, URIs, controllers, and middleware relationships.
Filter routes by URI to narrow down displayed nodes.
Seamlessly integrates with Laravel projects by executing php artisan route:list --json internally.
Lightweight and easy to use within Visual Studio Code.
Improves route comprehension for maintenance and debugging.
Examples
Installation
You can install RouteMap in Visual Studio Code by either:
Downloading the .vsix package and installing it via the Extensions pane's "Install from VSIX..." option.
Or more conveniently, by downloading it directly from the Visual Studio Code Marketplace.
Usage
Open a Laravel project folder in Visual Studio Code. This folder should contain the artisan file and the routes directory (e.g., routes/web.php).
Open the Command Palette by pressing:
Ctrl + Shift + P
Type the command:
Show Laravel Routes
Select the command when it appears.
The extension will execute the Laravel Artisan command to fetch the routes data:
php artisan route:list --json
An interactive graph panel will open showing all your routes as nodes connected by their relationships.
Use the filter input to search and narrow routes by URI patterns.
Thank you for using Laravel RouteMap to better understand and visualize your Laravel routes.