public function paginator(IlluminatePaginatorAdapter $paginator)
    {
        if ($this->resource instanceof CollectionResource) {
            $this->resource->setPaginator($paginator);
        }

        return $this;
    }
public function paginator(IlluminatePaginatorAdapter $paginator)
    {
        if ($this->resource instanceof CollectionResource) {
            $this->resource->setPaginator($paginator);
        }

        return $this;
    }
public function paginator ( IlluminatePaginatorAdapter $ paginator ) { if ( $ this -> resource instanceof CollectionResource ) { $ this -> resource -> setPaginator ( $ paginator ) ; } return $ this ; }
Manually set the paginator on the resource.

@param  \League\Fractal\Pagination\IlluminatePaginatorAdapter $paginator
@return $this
Manually set the paginator on the resource .