code: protected function readWithFilters($record, EncodingParametersInterface $parameters)
      {
          $query = $this->newQuery()->whereKey($record->getKey());
          $this->applyFilters($query, collect($parameters->getFilteringParameters()));
  
          return $query->exists() ? $record : null;
      }
docs: Does the record match the supplied filters?
  
  @param Model $record
  @param EncodingParametersInterface $parameters
  @return Model|null