src/Compare.php
public static function identifiers($ids, ?string $type): array
    {
        if (self::identifiable($ids)) {
            return [self::identifier($ids, $type)];
        }

        return collect($ids)->map(function ($id) use ($type) {
            return self::identifier($id, $type);
        })->values()->all();
    }
public static function identifiers($ids, ?string $type): array
    {
        if (self::identifiable($ids)) {
            return [self::identifier($ids, $type)];
        }

        return collect($ids)->map(function ($id) use ($type) {
            return self::identifier($id, $type);
        })->values()->all();
    }
Ensure the value is an array of identifiers.

@param UrlRoutable|string|int|iterable $ids
@param string|null $type
the type to use if $id does not already have a type.
@return array