getModel(); $filter = $this->getModelFilter(); $query = $this->query(); if($this->withRelationships){ $query->with($this->withRelationships); } if ($filter) { $query->filter(request()->input(), $filter); } return $query->sort(); } public function delete(string $ids): mixed { $id = explode(',', $ids); // 删除广告 Banner::whereIn('place_id', $id)->delete(); return parent::delete($ids); } }