src/Transformer/Adapter/Fractal.php
protected function shouldEagerLoad($response)
    {
        if ($response instanceof IlluminatePaginator) {
            $response = $response->getCollection();
        }

        return $response instanceof EloquentCollection && $this->eagerLoading;
    }
protected function shouldEagerLoad($response)
    {
        if ($response instanceof IlluminatePaginator) {
            $response = $response->getCollection();
        }

        return $response instanceof EloquentCollection && $this->eagerLoading;
    }
protected function shouldEagerLoad ( $ response ) { if ( $ response instanceof IlluminatePaginator ) { $ response = $ response -> getCollection ( ) ; } return $ response instanceof EloquentCollection && $ this -> eagerLoading ; }
Eager loading is only performed when the response is or contains an
Eloquent collection and eager loading is enabled.

@param mixed $response

@return bool
Eager loading is only performed when the response is or contains an Eloquent collection and eager loading is enabled .