Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Younes El Biache
2016-07-09 14:33:37 +0200
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Committed by
GitHub
2016-07-09 14:33:37 +0200
Commit
ec30864ce5ecef84b5ffd284734b6362aac564c8
ec30864c
1 parent
10418323
shorter amazon S3 url
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/Services/ImageService.php
app/Services/ImageService.php
View file @
ec30864
...
...
@@ -259,7 +259,7 @@ class ImageService
// Get the standard public s3 url if s3 is set as storage type
if
(
$storageUrl
==
false
&&
config
(
'filesystems.default'
)
===
's3'
)
{
$storageDetails
=
config
(
'filesystems.disks.s3'
);
$storageUrl
=
'https://
s3-'
.
$storageDetails
[
'region'
]
.
'.amazonaws.com/'
.
$storageDetails
[
'bucket'
]
;
$storageUrl
=
'https://
'
.
$storageDetails
[
'bucket'
]
.
'.s3.amazonaws.com'
;
}
$this
->
storageUrl
=
$storageUrl
;
...
...
@@ -269,4 +269,4 @@ class ImageService
}
}
\ No newline at end of file
}
...
...
Please
register
or
sign in
to post a comment