src/Execution/DataLoader/BatchLoader.php
public static function instanceKey(array $path): string
    {
        return (new Collection($path))
            ->filter(function ($path): bool {
                // Ignore numeric path entries, as those signify an array of fields.
                // Combining the queries for those is the very purpose of the
                // batch loader, so they must not be included.
                return ! is_numeric($path);
            })
            ->implode('_');
    }
public static function instanceKey(array $path): string
    {
        return (new Collection($path))
            ->filter(function ($path): bool {
                // Ignore numeric path entries, as those signify an array of fields.
                // Combining the queries for those is the very purpose of the
                // batch loader, so they must not be included.
                return ! is_numeric($path);
            })
            ->implode('_');
    }
public static function instanceKey ( array $ path ) : string { return ( new Collection ( $ path ) ) -> filter ( function ( $ path ) : bool { // Ignore numeric path entries, as those signify an array of fields. // Combining the queries for those is the very purpose of the // batch loader, so they must not be included. return ! is_numeric ( $ path ) ; } ) -> implode ( '_' ) ; }
Generate a unique key for the instance, using the path in the query.

@param  mixed[]  $path
@return string
Generate a unique key for the instance using the path in the query .