src/Validation/AbstractValidators.php
protected function dataForDelete($record): array
    {
        $schema = $this->container->getSchema($record);

        return ResourceObject::create([
            'type' => $schema->getResourceType(),
            'id' => $schema->getId($record),
            'attributes' => $schema->getAttributes($record),
            'relationships' => collect($this->existingRelationships($record))->all(),
        ])->all();
    }
protected function dataForDelete($record): array
    {
        $schema = $this->container->getSchema($record);

        return ResourceObject::create([
            'type' => $schema->getResourceType(),
            'id' => $schema->getId($record),
            'attributes' => $schema->getAttributes($record),
            'relationships' => collect($this->existingRelationships($record))->all(),
        ])->all();
    }
Get validation data for deleting a domain record.

@param $record
@return array