From 6b8d6032376598dd6e540c8fb9995fce63429aac Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Sun, 17 Jan 2021 02:04:28 +0100 Subject: [PATCH] Old logic --- app/Http/Controllers/PublicController.php | 4 ++-- config/filesystems.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/PublicController.php b/app/Http/Controllers/PublicController.php index 33702a7..0cd60dc 100644 --- a/app/Http/Controllers/PublicController.php +++ b/app/Http/Controllers/PublicController.php @@ -38,14 +38,14 @@ class PublicController extends BaseController return view("themes.gallery.gallery.list", ["gallery" => $gallery, "tenant" => $tenant, "images" => $images]); } - public function returnImageFile($tenant, $gallery, $image, Request $request) { + public function returnImageFile2($tenant, $gallery, $image, Request $request) { $image = Image::query()->where("id", "=", $image)->firstOrFail(); $size = $request->input("size", "medium"); $file = Storage::disk($image->driver)->response($image->path); return $file; } - public function returnImageFile2($tenant, $gallery, $image, Request $request) { + public function returnImageFile($tenant, $gallery, $image, Request $request) { $uid = uniqid(); Log::info($uid.": Start", [$image]); $globalstart = microtime(true); diff --git a/config/filesystems.php b/config/filesystems.php index 66179d8..3a0954e 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -35,12 +35,12 @@ return [ 'root' => storage_path('app'), ], - /*'cache' => [ + 'cache' => [ 'driver' => 'local', 'root' => storage_path('cache'), - ],*/ + ], - 'cache' => [ + /*'cache' => [ 'driver' => 's3', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), @@ -48,7 +48,7 @@ return [ 'bucket' => env('AWS_BUCKET'), 'url' => env('AWS_URL'), 'endpoint' => env('AWS_ENDPOINT'), - ], + ],*/ 's3' => [ 'driver' => 's3',