#Undefined method 'where' in vscode...

8 messages · Page 1 of 1 (latest)

mental glade
#

...but the application code appears to execute correctly. As I just did a v9 to v10 upgrade at first I assumed that something had broken there. But I find that I can execute the code and the (in this case) SQL is generated correctly (as seen within the laravel.log file).

[2023-03-30 16:00:13] local.DEBUG: select count(*) as aggregate from userswhereemail = ? ["[email protected]"]

Is this perhaps an issue with the VS Code plug-ins as opposed to my Laravel install?

thx for any pointers,
j

copper fox
#

I don't use vscode but it sounds like it doesn't know where to look for where. You could try re-indexing your project.

#

Are you using an Laravel plugins?

#

For VSCode

worthy nexus
#

If you setup vscode correctly add query at the start

mental glade
jaunty mica
#

query returns a Builder instance, where the where method is actually defined.