<?php
namespace App\Providers;
use App\Exceptions\DingoHandler as ExceptionHandler;
class DingoApiServiceProvider extends \Dingo\Api\Provider\LaravelServiceProvider
{
/**
* Register the exception handler.
*/
protected function registerExceptionHandler()
{
$this->app->singleton('api.exception', function ($app) {
return new ExceptionHandler($app['Illuminate\Contracts\Debug\ExceptionHandler'], $this->config('errorFormat'), $this->config('debug'));
});
}
}