protected function registerFractal()
    {
        $this->app->bind(SerializerAbstract::class, function ($app) {
            $serializer = $app->config->get('responder.serializer');

            return new $serializer;
        });

        $this->app->bind(Manager::class, function ($app) {
            return (new Manager())->setSerializer($app[SerializerAbstract::class]);
        });

        $this->app->bind(ResourceFactory::class, function () {
            return new ResourceFactory();
        });
    }
protected function registerFractal()
    {
        $this->app->bind(SerializerAbstract::class, function ($app) {
            $serializer = $app->config->get('responder.serializer');

            return new $serializer;
        });

        $this->app->bind(Manager::class, function ($app) {
            return (new Manager())->setSerializer($app[SerializerAbstract::class]);
        });

        $this->app->bind(ResourceFactory::class, function () {
            return new ResourceFactory();
        });
    }
protected function registerFractal ( ) { $ this -> app -> bind ( SerializerAbstract :: class , function ( $ app ) { $ serializer = $ app -> config -> get ( 'responder.serializer' ) ; return new $ serializer ; } ) ; $ this -> app -> bind ( Manager :: class , function ( $ app ) { return ( new Manager ( ) ) -> setSerializer ( $ app [ SerializerAbstract :: class ] ) ; } ) ; $ this -> app -> bind ( ResourceFactory :: class , function ( ) { return new ResourceFactory ( ) ; } ) ; }
Register Fractal serializer, manager and a factory to generate Fractal
resource instances.

@return void
Register Fractal serializer manager and a factory to generate Fractal resource instances .