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]);
|
||||
}
|
||||
|
||||
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);
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue