Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
Make public files public in object storage
Dave Earley00f5287eea83
diff --git a/backend/app/Services/Infrastructure/Image/ImageStorageService.php b/backend/app/Services/Infrastructure/Image/ImageStorageService.phpindex f03fdbf05..e8f59b863 100644--- a/backend/app/Services/Infrastructure/Image/ImageStorageService.php+++ b/backend/app/Services/Infrastructure/Image/ImageStorageService.php@@ -31,7 +31,10 @@ readonly class ImageStorageService$path = $this->filesystemManager->disk($disk)->putFileAs(path: strtolower($imageType),file: $image,- name: $filename+ name: $filename,+ options: [+ 'visibility' => 'public',+ ],);if ($path === false) {diff --git a/backend/config/filesystems.php b/backend/config/filesystems.phpindex 50b1a4a1d..13a7d7ec3 100644--- a/backend/config/filesystems.php+++ b/backend/config/filesystems.php@@ -55,6 +55,7 @@ return ['endpoint' => env('AWS_ENDPOINT'),'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),'throw' => false,+ 'visibility' => 'public',],'s3-private' => ['driver' => 's3',