出現這樣的報錯:
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"
解決.