dingo/api安装报错, 解决方法.

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wuchengzeng/article/details/88747013

 出现这样的报错:

 Class Dingo\Api\Exception\Handler contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Illuminate\Contracts\Debug  
  \ExceptionHandler::shouldReport)   

解决方法:

  把"require"里面的"dingo/api": "xxx"删掉, 
  还有相关的app.php文件里面关于dingo的providers和aliases去掉,
  然后运行composer update
  然后运行 php artisan vendor:publish --provider="Dingo\Api\Provider\LaravelServiceProvider"
  解决.

猜你喜欢

转载自blog.csdn.net/wuchengzeng/article/details/88747013
今日推荐