Old logic
This commit is contained in:
parent
faaff3b6d3
commit
6b8d603237
2 changed files with 6 additions and 6 deletions
|
@ -38,14 +38,14 @@ class PublicController extends BaseController
|
||||||
return view("themes.gallery.gallery.list", ["gallery" => $gallery, "tenant" => $tenant, "images" => $images]);
|
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();
|
$image = Image::query()->where("id", "=", $image)->firstOrFail();
|
||||||
$size = $request->input("size", "medium");
|
$size = $request->input("size", "medium");
|
||||||
$file = Storage::disk($image->driver)->response($image->path);
|
$file = Storage::disk($image->driver)->response($image->path);
|
||||||
return $file;
|
return $file;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function returnImageFile2($tenant, $gallery, $image, Request $request) {
|
public function returnImageFile($tenant, $gallery, $image, Request $request) {
|
||||||
$uid = uniqid();
|
$uid = uniqid();
|
||||||
Log::info($uid.": Start", [$image]);
|
Log::info($uid.": Start", [$image]);
|
||||||
$globalstart = microtime(true);
|
$globalstart = microtime(true);
|
||||||
|
|
|
@ -35,12 +35,12 @@ return [
|
||||||
'root' => storage_path('app'),
|
'root' => storage_path('app'),
|
||||||
],
|
],
|
||||||
|
|
||||||
/*'cache' => [
|
'cache' => [
|
||||||
'driver' => 'local',
|
'driver' => 'local',
|
||||||
'root' => storage_path('cache'),
|
'root' => storage_path('cache'),
|
||||||
],*/
|
],
|
||||||
|
|
||||||
'cache' => [
|
/*'cache' => [
|
||||||
'driver' => 's3',
|
'driver' => 's3',
|
||||||
'key' => env('AWS_ACCESS_KEY_ID'),
|
'key' => env('AWS_ACCESS_KEY_ID'),
|
||||||
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
||||||
|
@ -48,7 +48,7 @@ return [
|
||||||
'bucket' => env('AWS_BUCKET'),
|
'bucket' => env('AWS_BUCKET'),
|
||||||
'url' => env('AWS_URL'),
|
'url' => env('AWS_URL'),
|
||||||
'endpoint' => env('AWS_ENDPOINT'),
|
'endpoint' => env('AWS_ENDPOINT'),
|
||||||
],
|
],*/
|
||||||
|
|
||||||
's3' => [
|
's3' => [
|
||||||
'driver' => 's3',
|
'driver' => 's3',
|
||||||
|
|
Loading…
Reference in a new issue