dingo/api安裝報錯, Class Dingo\Api\Exception\Handler contains 1 abstract method解決方法.

 出現這樣的報錯:

 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"刪掉, 

"require": {
    "liyu/dingo-serializer-switch": "^0.3.1"
},
還有相關的app.php文件裏面關於dingo的providers和aliases去掉,
然後運行composer update
然後運行 php artisan vendor:publish --provider="Dingo\Api\Provider\LaravelServiceProvider"
解決.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章