params = $params; } public function apply($model, RepositoryInterface $repository) { if (!empty($this->params['uid'])) { $model = $model->where('goods_uid', $this->params['uid']); } return $model; } }