protected function registerResponseFactory()
    {
        $this->app->singleton(ResponseFactoryContract::class, function ($app) {
            return new ResponseFactory($app[ViewFactoryContract::class], $app['redirect']);
        });
    }
protected function registerResponseFactory()
    {
        $this->app->singleton(ResponseFactoryContract::class, function ($app) {
            return new ResponseFactory($app[ViewFactoryContract::class], $app['redirect']);
        });
    }
protected function registerResponseFactory ( ) { $ this -> app -> singleton ( ResponseFactoryContract :: class , function ( $ app ) { return new ResponseFactory ( $ app [ ViewFactoryContract :: class ] , $ app [ 'redirect' ] ) ; } ) ; }
Register the response factory implementation.

@return void
Register the response factory implementation .