/** * Paginate and build tableview for view * * @return Witty\LaravelTableView\LaravelTableView */ public function build() { $this->dataCollection = $this->filteredAndSorted($this->path, $this->dataCollection, $this->searchRepo, $this->sortRepo, $this->columns)->paginate($this->perPage); $this->collectionSize = $this->dataCollection->total(); return $this; }