src/Pagination/PaginatorFactory.php
public function make(LengthAwarePaginator $paginator): PaginatorInterface
    {
        $paginator->appends($this->parameters);

        return new IlluminatePaginatorAdapter($paginator);
    }
public function make(LengthAwarePaginator $paginator): PaginatorInterface
    {
        $paginator->appends($this->parameters);

        return new IlluminatePaginatorAdapter($paginator);
    }
Make a Fractal paginator adapter from a Laravel paginator.

@param  \Illuminate\Contracts\Pagination\LengthAwarePaginator $paginator
@return \League\Fractal\Pagination\PaginatorInterface