request = $request; } /** * @inheritDoc */ public function apply($model, RepositoryInterface $repository) { if ($no = $this->request->get('no', false)) { $model = $model->where('no', $no); } if ($this->request->filled('status')) { $model = $model->where('status', $this->request->get('status')); } $model = $model->orderBy("id", 'desc'); return parent::apply($model, $repository); } }