Exemple #1
0
 /**
  * Get all items.
  *
  * @param array $columns
  *
  * @return \Illuminate\Database\Eloquent\Collection
  */
 public function all($columns = ['*'])
 {
     $this->applyCriteria();
     if ($this->isSearching()) {
         return $this->scout->get()->load($this->with);
     }
     return $this->getQuery()->get($columns);
 }
 /**
  * Get the entries.
  *
  * @return Collection
  */
 public function get()
 {
     return (new Decorator())->decorate($this->model->newCollection($this->query->get()->all()));
 }