小白兔晒黑了

导航

 

问题

composer require dingo/api --with-all-dependencies

时遇到报错

Your requirements could not be resolved to an installable set of package

解决办法

composer update --ignore-platform-reqs

发现安装好了,但不能用,

又报错

 Declaration of Dingo\Api\Exception\Handler::report(Throwable $throwable) must be compatible with Illuminate\Contracts\Debug\ExceptionHandler::report(Exception $e)

解决办法

因为dingo3.0要laravel7以上

升级laravel即可

升级办法 https://laravelacademy.org/post/21444

如果出现函数不存在报错 ,安装helpers

 composer require laravel/helpers

 

然后重新安装dingo

composer remove dingo/api

 

 

 

posted on 2021-04-12 18:50  小白兔晒黑了  阅读(159)  评论(0)    收藏  举报