protected function getFallbackConfigValue($key, $default = null)
    {
        $map = [
            'keep-old-files' => 'keep-old-files',
            'preserve-files' => 'preserve-files',
            'storage'        => 'storage.disk',
            'path'           => 'path.original',
            'variant-path'   => 'path.variant',

            'attributes.size'         => 'model.attributes.size',
            'attributes.content_type' => 'model.attributes.content_type',
            'attributes.updated_at'   => 'model.attributes.updated_at',
            'attributes.created_at'   => 'model.attributes.created_at',
            'attributes.variants'     => 'model.attributes.variants',
        ];

        if ( ! in_array($key, array_keys($map))) {
            return $default;
        }

        return config('paperclip.' . $map[ $key ], $default);
    }
protected function getFallbackConfigValue($key, $default = null)
    {
        $map = [
            'keep-old-files' => 'keep-old-files',
            'preserve-files' => 'preserve-files',
            'storage'        => 'storage.disk',
            'path'           => 'path.original',
            'variant-path'   => 'path.variant',

            'attributes.size'         => 'model.attributes.size',
            'attributes.content_type' => 'model.attributes.content_type',
            'attributes.updated_at'   => 'model.attributes.updated_at',
            'attributes.created_at'   => 'model.attributes.created_at',
            'attributes.variants'     => 'model.attributes.variants',
        ];

        if ( ! in_array($key, array_keys($map))) {
            return $default;
        }

        return config('paperclip.' . $map[ $key ], $default);
    }
protected function getFallbackConfigValue ( $ key , $ default = null ) { $ map = [ 'keep-old-files' => 'keep-old-files' , 'preserve-files' => 'preserve-files' , 'storage' => 'storage.disk' , 'path' => 'path.original' , 'variant-path' => 'path.variant' , 'attributes.size' => 'model.attributes.size' , 'attributes.content_type' => 'model.attributes.content_type' , 'attributes.updated_at' => 'model.attributes.updated_at' , 'attributes.created_at' => 'model.attributes.created_at' , 'attributes.variants' => 'model.attributes.variants' , ] ; if ( ! in_array ( $ key , array_keys ( $ map ) ) ) { return $ default ; } return config ( 'paperclip.' . $ map [ $ key ] , $ default ) ; }
Returns the global configuration fallback for a config value.

@param string $key
@param mixed  $default
@return mixed
Returns the global configuration fallback for a config value .