plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Bug]: where() function on Model is not recognized and thus not autocompleteable

Open RoodFruit opened this issue 3 years ago • 3 comments

Bug description

The where() function does not exist on Models.

User::where(     <--- this does not exist in the autocomplete list

1 2

Plugin version

5.1.1.213

Operating system

MacOS

Steps to reproduce

AnyModel::where(     <--- this does not exist in the autocomplete list

Relevant log output

No response

RoodFruit avatar Feb 17 '22 09:02 RoodFruit

Hi, Rood.

Have you generated an Eloquent Helper code? main menu > Laravel > Generate Eloquent Helper Code

adelf avatar Feb 18 '22 01:02 adelf

Hi, Rood.

Have you generated an Eloquent Helper code? main menu > Laravel > Generate Eloquent Helper Code

Yes, that is why I get the autocomplete list. Normally I need to use ->query()->... to get the autocomplete list.

RoodFruit avatar Feb 18 '22 05:02 RoodFruit

@adelf when I generate the Eloquent Helper Code, where() is NOT part of the _ide_helper_model_builders.php file.. hence where() is not recognized.

RoodFruit avatar Mar 21 '22 21:03 RoodFruit