laravel artisan 命令报错解决方法记录

Catchable fatal error: Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request, null given, called in E:\phpStudy\PHPTutorial\WWW\newzyc\vendor\laravel\framework\src\Illuminate\Routing\RoutingServiceProvid

报错信息类似上面的话,只需查询config文件是否有使用了url()这个方法

如图,我原来这里使用url(),所以报错,只需加上个条件判断即可解决

posted @ 2018-11-21 14:57  lrb123  阅读(574)  评论(0编辑  收藏  举报