src/Versatile/Query/Builder.php
public function paginate($perPage = null, $columns = array('*'))
    {

        $columnsPassed = (func_num_args() > 1) && ($columns !== null);

        $columns = $columnsPassed ? $columns : $this->getQueryColumns();

        $query = $this->buildQuery($columns);

        if ($columnsPassed) {
            return $query->paginate($perPage, $columns);
        }

        // addJoinOnce adds queryColumns again...
        return $query->paginate($perPage, $this->getQueryColumns());

    }
public function paginate($perPage = null, $columns = array('*'))
    {

        $columnsPassed = (func_num_args() > 1) && ($columns !== null);

        $columns = $columnsPassed ? $columns : $this->getQueryColumns();

        $query = $this->buildQuery($columns);

        if ($columnsPassed) {
            return $query->paginate($perPage, $columns);
        }

        // addJoinOnce adds queryColumns again...
        return $query->paginate($perPage, $this->getQueryColumns());

    }
Get a paginator for the "select" statement.

@param  int    $perPage
@param  array  $columns
@return \Illuminate\Pagination\Paginator