private static function driver()
    {
        $options = config('cache.options');

        $driver = config('cache.default');

        switch ($driver) {
            case 'file':
                    return instance(FileDriver::class);
                break;

            case 'apc':
                    return instance(ApcDriver::class);
                break;

            case 'database':
                    return instance(PDODriver::class);
                break;

            default:
                    exception(DriverNotFoundException::class);
                break;
        }
    }
private static function driver()
    {
        $options = config('cache.options');

        $driver = config('cache.default');

        switch ($driver) {
            case 'file':
                    return instance(FileDriver::class);
                break;

            case 'apc':
                    return instance(ApcDriver::class);
                break;

            case 'database':
                    return instance(PDODriver::class);
                break;

            default:
                    exception(DriverNotFoundException::class);
                break;
        }
    }
private static function driver ( ) { $ options = config ( 'cache.options' ) ; $ driver = config ( 'cache.default' ) ; switch ( $ driver ) { case 'file' : return instance ( FileDriver :: class ) ; break ; case 'apc' : return instance ( ApcDriver :: class ) ; break ; case 'database' : return instance ( PDODriver :: class ) ; break ; default : exception ( DriverNotFoundException :: class ) ; break ; } }
Set the cache surface driver.

@return Driver
Set the cache surface driver .