codingyu / laravel-goto-view

vscode extension
MIT License
45 stars 28 forks source link

Support for Route::view() #36

Closed sfsaccone closed 2 years ago

sfsaccone commented 3 years ago

By default it doesn't seem to work for something like this:

 Route::view('/my-route', 'my-directory.my-blade-view');

Revising the default regex setting as shown below appears to add support for this, at least for the simple example above:

"laravel_goto_view.regex": "(?<=view\\(|Route::view\\('.*?',\\s+|@include\\(|@extends\\(|@component\\(|Inertia::render\\()(['\"])[^'\"]*\\1",
github-actions[bot] commented 2 years ago

Stale issue message