Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add s3 support #1197

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix typo
slimani-dev committed May 30, 2023
commit eeb8232f67ea4382f44f6099185d7e7c6f6eb223
8 changes: 3 additions & 5 deletions src/LfmStorageRepository.php
Original file line number Diff line number Diff line change
@@ -45,12 +45,10 @@ public function url($path)
{
$config = $this->disk->getConfig();

if (key_exists('driver', $config) && $config['driver'] == 's3')

$duration = $this->helper->config('s3.temporary_url_expiration');
if (key_exists('driver', $config) && $config['driver'] == 's3') {
$duration = $this->helper->config('temporary_url_duration');
return $this->disk->temporaryUrl($path, now()->addMinutes($duration));

else {
} else {
return $this->disk->url($path);
}
}