Skip to content

Commit

Permalink
Merge 5287ec9 into b420c69
Browse files Browse the repository at this point in the history
  • Loading branch information
talvbansal committed Jul 21, 2020
2 parents b420c69 + 5287ec9 commit cd8a0dc
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Helpers/media_library_helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@
*/
function s3Endpoint($disk = 'libraries')
{
// if a custom s3 endpoint is configured explicitly, return it
$customEndpoint = config("filesystems.disks.{$disk}.endpoint");

if ($customEndpoint) {
return $customEndpoint;
}

$scheme = config("filesystems.disks.{$disk}.use_https") ? 'https://' : '';
return $scheme . config("filesystems.disks.{$disk}.bucket") . '.' . Storage::disk($disk)->getAdapter()->getClient()->getEndpoint()->getHost();
}
Expand Down

0 comments on commit cd8a0dc

Please sign in to comment.