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

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

        return [];
    }
public static function all ( $ parent ) { is_eloquent_object ( $ parent , true ) ; $ cache = static :: getCache ( ) ; if ( isset ( $ cache [ $ parent ] ) ) { return $ cache [ $ parent ] ; } return [ ] ; }
Returns the cached relations for a given
parent model.

@param $model

@return array
Returns the cached relations for a given parent model .