- Go to route declaration
- Go to controller method declaration
- Find blade usage
Extension (vsix) size: ±16 KB
- Open routes file, eg.:
web.phporapi.php - Put cursor on line that contains route declaration, eg.:
BookController@showor[BookController::class, 'show'] - Right click on that line
- Choose "EP: Laravel: Go to Controller"
- Please wait... Controller file will be displayed for you
or just click EP-findController on statusbar
- Open controller class, eg.:
BookController.php - Put cursor on line that contains method name, eg.:
function index() {orfunction show($id) { - Right click on that line
- Choose "EP: Laravel: Go to Route"
- Please wait... Route declaration file will be displayed for you
or just click EP-findRoute on statusbar
- Open an layout file, eg.:
index.blade.phpordetail.blade.php - Right click on any line
- Choose "EP: Laravel: Find blade usage"
- Please wait... Blade usage / Controller file will be displayed for you
or just click EP-findBladeUsage on statusbar
| Laravel Version | Status | Extension Version |
|---|---|---|
| 10.x | supported | since v2.2.0 |
| 9.x | supported | since v2.2.0 |
| 8.x | supported | since v2.2.0 |
| 7.x | supported | since v2.1.9 |
| 6.x | supported | since v2.1.9 |
| 5.8 | supported | . |
| 5.7 | supported | . |
| 5.6 | supported | . |
| 5.5 | supported | . |
| 5.4 | supported | . |
| 5.3 | supported | . |
| 5.2 | supported | . |
| 5.1 | supported | . |
Extension: https://marketplace.visualstudio.com/items?itemName=erlangparasu.goto-route-controller-laravel
Source: https://github.com/erlangparasu/goto-route-controller-laravel
Enjoy :)