Class ‘AlternativeLaravelCacheProviderAlternativeCacheStoresServiceProvider’ not found

  asgardcms, laravel

namespace AppProviders;

use AlternativeLaravelCacheProviderAlternativeCacheStoresServiceProvider;

/**

  • Note: Using ‘dev-master’ for the library. If composer update causes

  • issue, then refer to library’s stable release version in composer.json

  • and update it.
    */
    class CacheStoresServiceProvider extends AlternativeCacheStoresServiceProvider
    {
    static protected $redisDriverName = ‘redis’; // ‘redis’,’altredis’

    static protected $fileDriverName = ‘file’; // ‘file’,’altfile’

    public function register()
    {
    if (env(‘CACHE_DRIVER’) == ‘array’) {
    static::$fileDriverName = ‘altfile’;
    }

     parent::register();
    

    }

}
Arguments
"Class ‘AlternativeLaravelCacheProviderAlternativeCacheStoresServiceProvider’ not found"

Source: Laravel

Leave a Reply