加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

为什么我会得到这个错误与Laravel:PHP开捕致命错误?

发布时间:2020-12-14 19:41:15 所属栏目:大数据 来源:网络整理
导读:当我尝试运行php工匠(任何东西)时,我得到这个错误: PHP Catchable fatal error: Argument 2 passed toIlluminateRoutingUrlGenerator::__construct()must be an instance of IlluminateHttpRequest,null given,called in/www/laravel5/vendor/laravel/f
当我尝试运行php工匠(任何东西)时,我得到这个错误:
PHP Catchable fatal error:  Argument 2 passed to
IlluminateRoutingUrlGenerator::__construct()
must be an instance of IlluminateHttpRequest,null given,called in
/www/laravel5/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php
on line 56 and defined in
/www/laravel5/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php
on line 81

Catchable fatal error: Argument 2 passed to
IlluminateRoutingUrlGenerator::__construct()
must be an instance of IlluminateHttpRequest,called in
/www/laravel5/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php
on line 56 and defined in
/www/laravel5/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php
on line 81

我绝对不知道是什么导致它,需要帮助.

提前致谢

那么我发现什么产生了错误.

在config / services.php我这样做:

'facebook' => [
    'client_id'     => env('FACEBOOK_APP_ID',null),'client_secret' => env('FACEBOOK_APP_SECRET','redirect'      => url('auth/facebook'),]

url(‘auth / facebook’)是什么导致的错误.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读