diff --git a/config/clyde.php b/config/clyde.php index e3e14f4..9bc0019 100644 --- a/config/clyde.php +++ b/config/clyde.php @@ -14,43 +14,43 @@ /* |-------------------------------------------------------------------------- - | Cache Filesystem + | Source Path Prefix |-------------------------------------------------------------------------- | - | Please specify cache filesystem (local or s3). + | This is a path where source files will be stored. | */ - 'cache' => 'local', + 'source_path_prefix' => '/uploads', /* |-------------------------------------------------------------------------- - | Watermarks Filesystem + | Cache Filesystem |-------------------------------------------------------------------------- | - | Please specify watermarks filesystem (local or s3). + | Please specify cache filesystem (local or s3). | */ - 'watermarks' => 'local', + 'cache' => 'local', /* |-------------------------------------------------------------------------- - | Source Path Prefix + | Cache Path Prefix |-------------------------------------------------------------------------- | - | This is a path where source files will be stored. + | This is a path where cache files will be stored. | */ - 'source_path_prefix' => '/uploads', + 'cache_path_prefix' => '/uploads/.cache', /* |-------------------------------------------------------------------------- - | Cache Path Prefix + | Watermarks Filesystem |-------------------------------------------------------------------------- | - | This is a path where cache files will be stored. + | Please specify watermarks filesystem (local or s3). | */ - 'cache_path_prefix' => '/uploads/.cache', + 'watermarks' => 'local', /* |-------------------------------------------------------------------------- diff --git a/src/Http/Controllers/ClydeImageController.php b/src/Http/Controllers/ClydeImageController.php index c64418b..2b823d8 100644 --- a/src/Http/Controllers/ClydeImageController.php +++ b/src/Http/Controllers/ClydeImageController.php @@ -46,10 +46,10 @@ public function show(Request $request, $filename) $server = ServerFactory::create([ 'source' => $this->files->disk(config('clyde.source'))->getDriver(), - 'cache' => $this->files->disk(config('clyde.cache'))->getDriver(), - 'watermarks' => $this->files->disk(config('clyde.watermarks'))->getDriver(), 'source_path_prefix' => config('clyde.source_path_prefix'), + 'cache' => $this->files->disk(config('clyde.cache'))->getDriver(), 'cache_path_prefix' => config('clyde.cache_path_prefix'), + 'watermarks' => $this->files->disk(config('clyde.watermarks'))->getDriver(), 'watermarks_path_prefix' => config('clyde.watermarks_path_prefix'), 'max_image_size' => config('clyde.max_image_size'), 'presets' => config('clyde.presets'),