Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

andyandy's avatar

VSCODE stopped suggesting Models names etc.

In !!ONE!! of my projects VSCODE stopped suggesting names of Models while I'm typing. (It also started underlining "Controller".)

https://i.imgur.com/ZOiBuO6.png

But the real problem is that it isn't hinting Models anymore so I can easily namespace insert them.

I didn't do anything major recently in this project. Just a few changes in blade. Created route + controller.

0 likes
5 replies
s4muel's avatar

@laravelum it is in the same namespace (see the attachment) and he is using the Intelephense already.

@andyandy weird indeed, hinting a parent class from the same namespace seems to be pretty basic stuff and not working in only one project... have you possibly changed a namespace? or moved the files elsewhere by accident? do you use https://github.com/barryvdh/laravel-ide-helper on top of the PHP Intelephense? turning off and on again? clearing caches? re-running composer-dump autoload? re-installing the PHP Intelephense?

andyandy's avatar

No.

It is old project that is working in the browser just fine.

Only VSCODE is not working on this project.

He underlining Controllers, Traits etc. Also is not hinting Models, Traits when typing.

andyandy's avatar

I'm tracking changes by git and recently I made only a few minor changes in Blade template and Controller. I didn't touch anything else.

andyandy's avatar

I went in .git 1 week (guaranteed it was working back then) back and the problem is still the same.

andyandy's avatar
andyandy
OP
Best Answer
Level 4

OK, so I solved it by pressing CTRL + SHIFT + P and typing "Intelephense: Index workspace".

1 like

Please or to participate in this conversation.