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