Younes El Biache
Committed by GitHub

shorter amazon S3 url

...@@ -259,7 +259,7 @@ class ImageService ...@@ -259,7 +259,7 @@ class ImageService
259 // Get the standard public s3 url if s3 is set as storage type 259 // Get the standard public s3 url if s3 is set as storage type
260 if ($storageUrl == false && config('filesystems.default') === 's3') { 260 if ($storageUrl == false && config('filesystems.default') === 's3') {
261 $storageDetails = config('filesystems.disks.s3'); 261 $storageDetails = config('filesystems.disks.s3');
262 - $storageUrl = 'https://s3-' . $storageDetails['region'] . '.amazonaws.com/' . $storageDetails['bucket']; 262 + $storageUrl = 'https://' . $storageDetails['bucket'] . '.s3.amazonaws.com';
263 } 263 }
264 264
265 $this->storageUrl = $storageUrl; 265 $this->storageUrl = $storageUrl;
...@@ -269,4 +269,4 @@ class ImageService ...@@ -269,4 +269,4 @@ class ImageService
269 } 269 }
270 270
271 271
272 -}
...\ No newline at end of file ...\ No newline at end of file
272 +}
......