laravel 报错 /RoutingServiceProvider.php on line

 余温
2018年06月09日 16时20分
 php

安装插件的时候报错

In UrlGenerator.php line 111:


  Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be

   an instance of Illuminate\Http\Request, null given, called in /home/wwwroo

  t/default/yuwen/vendor/laravel/framework/src/Illuminate/Routing/RoutingServ

  iceProvider.php on line 61

在 config/某个.php 某个配置文件里 这样写 我写了一个

image.png

这样这就对了

'github' => [
   'client_id' => env('GITHUB_CLIENT_ID'),         // Your GitHub Client ID
   'client_secret' => env('GITHUB_CLIENT_SECRET'), // Your GitHub Client Secret
   'redirect' => PHP_SAPI === 'cli' ? false : url(env('GITHUB_URL')),//回调地址
],


上一篇: nodejs 上传文件
下一篇: 文件上传
{{vo.nickname}}:{{vo.content}}

{{vo.time}} 回复


  • {{level.nickname}} 回复 {{level.father_nickname}}{{level.content}}
  • {{level.time}} 回复


@
登陆后评论