未定义的类Route(Laravel in PhpStorm)

未定义的类Route(Laravel in PhpStorm),第1张

概述如何在PhpStorm中修复此警​​报? 还有如何获得路线和其他门面的自动完成? 检查 Laracasts walkthrough 1)转到:https://github.com/barryvdh/laravel-ide-helper 2)点击要点 生成版本为L5:https://gist.github.com/barryvdh/5227822 3)点击“Raw”获得当前版本(截至2016年6月2 如何在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”(未定义类)的错误将消失,自动完成将会起作用.可能需要重新启动它.

总结

以上是内存溢出为你收集整理的未定义的类Route(Laravel in PhpStorm)全部内容,希望文章能够帮你解决未定义的类Route(Laravel in PhpStorm)所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/1258441.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-07
下一篇2022-06-07

发表评论

登录后才能评论

评论列表(0条)

    保存