未定义的类Route(Laravel in PhpStorm)
如何在PhpStorm中修复此警??报?
还有如何获得路线和其他门面的自动完成?
检查
Laracasts walkthrough
1)转到:https://github.com/barryvdh/laravel-ide-helper 2)点击要点 生成版本为L5:https://gist.github.com/barryvdh/5227822 3)点击“Raw”获得当前版本(截至2016年6月22日) https://gist.githubusercontent.com/barryvdh/5227822/raw/4d4b0ca26055fa4753b38edeb94fad2396c497c0/_ide_helper.php 4)确保你在你的根目录(这是我的) cd /var/www/html/project 5)下载要点: wget https://gist.githubusercontent.com/barryvdh/5227822/raw/4d4b0ca26055fa4753b38edeb94fad2396c497c0/_ide_helper.php 6)将“_ide_helper.php”添加到.gitignore文件中 sudo nano .gitignore 在底部的新行上添加“_ide_helper.php” 7)将.gitignore和_ide_helper.php文件下载到PhpStorm中 这是我的PhpStorm项目目录之后的样子: 8)将文件下载到PhpStorm中后,“Undefined class”(未定义类)的错误将消失,自动完成将会起作用.可能需要重新启动它. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |