Navigating to blade views from controllers doesn't work

With PhpStorm 2018.2.1 i can't nomore navigate to blade views from controllers.

This happens in projects where i store the views in a custom folder: private/resorces/views.

If i use the default folder (resources/views) it works, but with the custom path it doesn't. In previous version of Phpstorm it worked well. I have configured the custom path in the IDE config section (see image 1)

The strange thing is that the view is recognisez by the IDE in the controller (see image2) but when i try to navigate it fails (image3)

0
4 comments

Hi there,

Please report it to the Laravel plugin author. Laravel support is provided by that plugin as IDE only provides support for Blade files (syntax and stuff) but not Laravel itself.

P.S. I'm using with it with namespace and navigation works just fine.

Maybe you are trying to use it when indexing is till in progress?

 

1

thanks Andriy. I'll report to the plugin author.

The indexing is done when i try to navigate to blade files.

Can you please try if it works for you in the same situation as mine ? (without namespace, with the views placed in a non-default path)

0

I see the same as you -- it does not navigate if no namespace given.

Placed "contact-us/index.blade.php" into "PROJECT_ROOT/ppp" and create entry for "ppp" in Laravel plugin.

1

Solved: i've read from the Laravel plugin page that from the new version in my case i need to use a ide-blade.json file in the private directory with:

 

{
"namespaces": [
{
"path": "resources/views"
}
]
}
0

Please sign in to leave a comment.