laravel-idea/plugin

[Bug]: The plugin doesn't suggest ->where() method

Closed this issue · 3 comments

Bug description

Hello dear developer of this nice plugin! 💯

I use the plugin Laravel Idea
And it doesn't suggest ->where() method.
If I use User::where() - no result
If I use User::query()->where() - it works

But lang suggestion is works well
__('products.catalog_name') - suggest me an autocomplete.

Attaches:
1th screen is from video about the plugin
Screenshot 2024-09-10 at 15 17 00

2th screen is from my PhpStorm
Screenshot 2024-09-10 at 15 18 01

I use the last version of plugin.

Plugin version

6.2.2.213

Operating system

MacOS

Steps to reproduce

Just write a basic code
$user = User::where(); // no suggestions
$user = User::query()->where(); // suggested well

But the plugin works for lang structure
__('products.catalog_name'); // suggest me an autocomplete well
Screenshot 2024-09-11 at 19 26 37

Relevant log output

No response

adelf commented

Hello, Roman.

You should generate a helper code to get these completions. You can do it in the main menu - Laravel - Generate Helper Code. Or by Cmd-Shift-period(.)

BTW, Laravel Idea 6.2.2 version is released almost 2 years ago... and a bit outdated. It doesn't support latest Laravel versions.

Thanks you for helping! I generate helper code and it works!
Please help me to know, where the generated helper code stores? In the code of my project (which directory) or in PhpStorm application files?

I use old PhpStorm version 2021.3.3 and seems the plugin downloads the old version too.

adelf commented

It's in vendor/_laravel_idea by default.