laravel-idea / plugin

Laravel Idea plugin for PhpStorm
https://laravel-idea.com/
177 stars 7 forks source link

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

Closed rstarinsky closed 2 months ago

rstarinsky commented 2 months ago

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 2 months ago

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.

rstarinsky commented 2 months ago

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 2 months ago

It's in vendor/_laravel_idea by default.