Laravel support in 2020.1?

Even with Barry's IDE Helper, a lot of things dont work out of the box in PHPStorm like query scopes. Is there improved magic method support in 2020.1?

4 comments
Comment actions Permalink

We unfortunately do not maintain the plugin. You can submit the same request providing some more details at https://github.com/Haehnchen/idea-php-laravel-plugin/issues

0
Comment actions Permalink

I don't mean the plugin, I mean Phpstorm's ability to read php code. Phpstorm not being able to know variable names based on db tables is one thing, that makes sense. What doesnt make sense is on a typecasted closure, that it can't figure out magic method functions. This isn't a laravel thing, it's a php thing.

0
Comment actions Permalink

Example:

 

public function scopeCompleted() {}

 

In the current extended class, there's a function that turns $this->completed() into $this->scopeCompleted(). That code is just php.

0
Comment actions Permalink

@Ryan

Try a Laravel specific plugin -- PhpStorm does not support framework specific magic methods

There is Laravel Idea plugin (https://plugins.jetbrains.com/plugin/13441-laravel-idea) -- it's a paid one, but does provide a lot of things and well worth the money. Try it to see if it will do the stuff you are after. If not -- write plugin author.

0

Please sign in to leave a comment.