Skip to content

[5.4] Add FileSystem temporaryUrl() method for aws#20375

Merged
taylorotwell merged 3 commits intolaravel:5.4from
themsaid:fileSystemtemporaryUrl
Aug 1, 2017
Merged

[5.4] Add FileSystem temporaryUrl() method for aws#20375
taylorotwell merged 3 commits intolaravel:5.4from
themsaid:fileSystemtemporaryUrl

Conversation

@themsaid
Copy link
Copy Markdown
Member

@themsaid themsaid commented Aug 1, 2017

Gives the ability to generate temporary links for a given file:

Storage::disk('s3')->temporaryUrl("path/to/file", Carbon::now()->addMinutes(10))

@taylorotwell taylorotwell merged commit bc9121c into laravel:5.4 Aug 1, 2017
@lk77
Copy link
Copy Markdown

lk77 commented Aug 3, 2017

it would be cool to have it for other drivers too.

@Xantios
Copy link
Copy Markdown

Xantios commented Aug 3, 2017

and maybe not only for a duration but also for a amount of hits ? ( or im a thinking of a edge case here?)

@mhenkel1
Copy link
Copy Markdown

mhenkel1 commented Aug 4, 2017

It should be based on a time setting (minute) and an IP address.
I think your edge case has been solved with that. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants