-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Breaks "Laravel goto view" extension #103
Comments
@addtobag I believe you can disable the Laravel Goto View extension, as the Laravel extension should be able do this for you going forward. I just tested this in a controller, and it takes me directly to the view using only the Laravel extension (and the goto extension disabled). |
@mikebronner for me, Laravel extension links directly to blade view only in .php files such as controllers, livewire component classes etc. But not in blade files so I can't disable goto view extension. For example: Without goto view extension: With goto view extension: |
@N1ebieski gotcha, I thought you had trouble getting to the view from php, instead the issue seems to be with loading blade component views. Thanks for clarifying. |
I'm not an author this issue. I just wanted to point out that I (and probably other users) can't disable the "go to view" extension as you suggest. |
I use this goto component extension alongside the Laravel extension and it works: https://marketplace.visualstudio.com/items?itemName=ctf0.laravel-goto-component, perhaps this will help others also facing this issue. |
Hi Mike, thanks for the response. With GoTo view extension disabled, i have the same issue. If i create the file, it then creates it within the application folder structure but using my local folder directories e.g. ![]() |
To summarize:
|
@joetannenbaum |
I’ve disabled all Laravel-related extensions, restarted, and reinstalled the official Laravel extension. However, like @vmind, when I click on a view (whether within a Livewire component or a Controller), it prompts me to create the file instead of navigating to the correct one. Surely this must be a configuration issue? As mentioned in my previous message, it’s creating the file and folder structure within the project. Thanks, |
Hi everyone, I encountered the same issue with the "follow links" configuration, but it only occurred in a project where I hadn't updated Laravel yet. After some debugging, I discovered that in earlier versions of Laravel, config_path('/') would return a path with double slashes. Here's an example:
The extra slashes were causing the "follow link" issue. |
It's true that the In this screenshot, you can see both links—the one at the top is from the official extension, and the one at the bottom is from Laravel Goto View... Only the Notice that the file name does not include In Laravel 8, I get the same results as @erblinbobaj when testing the Hope that helps!! ![]() |
Extension Version
0.1.14
PHP Binary
Herd
Operating System
macOS
What happened?
Once installed, the Laravel goto view (https://github.com/codingyu/laravel-goto-view) breaks. Keeps asking to create the view file rather than opening it the file that already exists.
Mimimal Code Sample
No response
The text was updated successfully, but these errors were encountered: