Skip to content

Commit

Permalink
[8.x] Use different config key for overriding temporary url host in A…
Browse files Browse the repository at this point in the history
…wsTemporaryUrl method (#36612)

* Use different config key for overriding temporary url host

* Update FilesystemAdapter.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
jnoordsij and taylorotwell committed Mar 16, 2021
1 parent c02e325 commit d98cf8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Filesystem/FilesystemAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ public function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
// If an explicit base URL has been set on the disk configuration then we will use
// it as the base URL instead of the default path. This allows the developer to
// have full control over the base path for this filesystem's generated URLs.
if (! is_null($url = $this->driver->getConfig()->get('url'))) {
if (! is_null($url = $this->driver->getConfig()->get('temporary_url'))) {
$uri = $this->replaceBaseUrl($uri, $url);
}

Expand Down

0 comments on commit d98cf8b

Please sign in to comment.