Xpressengine\Database\DynamicQuery::paginate PHP Method

paginate() public method

Paginate the given query into a simple paginator.
public paginate ( integer $perPage = 15, array $columns = ['*'], string $pageName = 'page', integer | null $page = null ) : Illuminate\Contracts\Pagination\LengthAwarePaginator
$perPage integer count of list
$columns array get columns
$pageName string page parameter name
$page integer | null page number
return Illuminate\Contracts\Pagination\LengthAwarePaginator
    public function paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
    {
        if ($this->dynamic === false) {
            parent::paginate($perPage, $columns);
        }
        if ($this->proxy === true) {
            $this->getProxyManager()->get($this);
        }
        return parent::paginate($perPage, $columns);
    }