Update the sfelix-martins/json-exception-handler
dependency to ^2.0
in your composer.json
file.
If you are not using Laravel 5.5 version change the JsonHandlerServiceProvider
from your config/app.php
providers array:
'providers' => [
...
SMartins\Exceptions\JsonHandlerServiceProvider::class,
],