Пример #1
0
 public function handle(array $searchData)
 {
     $this->dataHandler->query()->where(function ($builder) use($searchData) {
         foreach ($searchData as $column => $data) {
             if ($this->hasColumnFilter($column)) {
                 $this->filterColumn($column, $builder, $data);
             }
         }
     });
 }
Пример #2
0
 /**
  * @return null|string
  */
 public function renderPaginator()
 {
     if (!$this->itemHandler->isPaginated()) {
         return null;
     }
     $this->itemHandler->paginator()->appends($this->request()->except('page', 'order_by', 'order_direction'));
     return $this->itemHandler->paginator()->render(new FoundationPresenter($this->itemHandler()->paginator()));
 }