Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 PhpStorm(版本 2020.2)有些问题。您可以看到 PhpStorm 无法识别图片、模型、控制器和命名空间,但应用程序运行良好。
有人知道如何在 PhpStorm 中解决这个问题吗?
对我来说,解决方案是关闭 IDE File > Close Project,然后从终端删除 .idea 文件夹rm -rf .idea,最后重新打开它解决了这个问题。
File > Close Project
rm -rf .idea
您必须在Settings Go to Settings > Directories 中定义命名空间并编辑每个命名空间的属性
Settings
在Source Folders编辑前缀为App\
Source Folders
App\