Closed ianjamieson closed 2 years ago
To fix, update the laravel_goto_view.regex
setting to:
(?<=view\(['"]|View::make\(['"]|@include\(['"]|@includeWhen\([^'"]*['"]|@extends\(['"]|@component\(['"]|Inertia::render\(['"]|\<)(\<x-|\<livewire:|[^'" \/>]+)
Notice the addition of includeWhen
@includeWhen\([^'"]*['"]
would only catch this @includeWhen(true, 'test')
but not this @includeWhen(myfunction('abc'), 'test')
Out of the box, the regex does not work for
@includeWhen
directives.Original regex: