public static function all($parent)
    {
        is_eloquent_object($parent, true);
        $cache = static::getCache();
        if (isset($cache[$parent])) {
            return $cache[$parent];
        }

        return [];
    }