code: protected function applyFilters($query, Collection $filters)
      {
          /** By default we support the `id` filter. */
          if ($this->isFindMany($filters)) {
              $this->filterByIds($query, $filters);
          }
  
          /** Hook for custom filters. */
          $this->filter($query, $filters);
      }
docs: Apply filters to the provided query parameter.
  
  @param Builder $query
  @param Collection $filters