src/Versatile/View/QueryBuilderFactory.php
public function paginate($searchable, array $params=[], $view='html')
    {
        $collection = $this->createCollection($searchable);

        $perPage = (isset($params['per_page']) && is_numeric($params['per_page'])) ? $params['per_page'] : null;

        $collection->setSrc($searchable->paginate([], $perPage));
        $this->assignColumns($searchable, $collection);

        return $collection;
    }
public function paginate($searchable, array $params=[], $view='html')
    {
        $collection = $this->createCollection($searchable);

        $perPage = (isset($params['per_page']) && is_numeric($params['per_page'])) ? $params['per_page'] : null;

        $collection->setSrc($searchable->paginate([], $perPage));
        $this->assignColumns($searchable, $collection);

        return $collection;
    }
{@inheritdoc}

@param mixed $searchable
@param array $params
@param string $view
@return \Collection\Collection