public function get($columns = ['*']) { $original = $this->columns; if (is_null($original)) { $this->columns = $columns; } $results = $this->processor->processSelect($this, $this->runSelect()); $this->columns = $original; return collect($results); }
/** * Get records from the database. * * @param int $per_page * * @return Collection */ public function get($per_page = 20) { $this->per_page = $per_page; $this->buildQuery(); return $this->query->get(); }