I have some problem with my PhpStorm (ver 2020.2). You can see on pictures, models, controllers and namespaces aren't recognized by PhpStorm, but application is working perfect.
Someone knows how to fix that problem in PhpStorm?


For me, the solution was to close IDE from File > Close Project, then remove .idea folder rm -rf .idea from terminal, and finally reopening it fixed the issue.
You have to define the namespaces in the Settings
Go to Settings > Directories and edit the properties for each namespace

On the Source Folders edit the prefix to be App\

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With