Dingo\Api\Provider\HttpServiceProvider::registerResponseFactory PHP Method

registerResponseFactory() protected method

Register the response factory.
protected registerResponseFactory ( ) : void
return void
    protected function registerResponseFactory()
    {
        $this->app->singleton('api.http.response', function ($app) {
            return new ResponseFactory($app[Factory::class]);
        });
    }