public function getDefaultCache(): ?Repository
    {
        // By default, the Cache Facade does not return the
        // any actual cache repository, but rather an
        // instance of \Illuminate\Cache\CacheManager.
        // Therefore, we make sure only to obtain its
        // "store", to make sure that its only the cache repository
        // instance that we obtain.
        $manager = Cache::getFacadeRoot();
        if (isset($manager)) {
            return $cache = $manager->store();
        }
        return $manager;
    }
public function getDefaultCache(): ?Repository
    {
        // By default, the Cache Facade does not return the
        // any actual cache repository, but rather an
        // instance of \Illuminate\Cache\CacheManager.
        // Therefore, we make sure only to obtain its
        // "store", to make sure that its only the cache repository
        // instance that we obtain.
        $manager = Cache::getFacadeRoot();
        if (isset($manager)) {
            return $cache = $manager->store();
        }
        return $manager;
    }
public function getDefaultCache ( ) : ? Repository { // By default, the Cache Facade does not return the // any actual cache repository, but rather an // instance of \Illuminate\Cache\CacheManager. // Therefore, we make sure only to obtain its // "store", to make sure that its only the cache repository // instance that we obtain. $ manager = Cache :: getFacadeRoot ( ) ; if ( isset ( $ manager ) ) { return $ cache = $ manager -> store ( ) ; } return $ manager ; }
Get a default cache value, if any is available

@return Repository|null A default cache value or Null if no default value is available
Get a default cache value if any is available