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

[5.2] check for getUrl method on the adapter before throwing exception - Filesystem #14246

Merged
merged 3 commits into from
Jul 8, 2016

Conversation

hocza
Copy link
Contributor

@hocza hocza commented Jul 7, 2016

It is better to check if the $adapter supports a getUrl function instead of telling without looking that "this driver does not support retrieving URLs."

By that any custom driver should be able to forge URLs for files. So if you're using a custom (non aws) S3 server that supports getting an URL you can still use Storage::url() happily.

hocza added 3 commits July 7, 2016 19:44
It is better to check if the $adapter supports a getUrl function instead of telling that this driver does not support retrieving URLs.
@hocza hocza changed the title [5.2] check for getUrl method on the adapter [5.2] check for getUrl method on the adapter before throwing exception - Filesystem Jul 7, 2016
@taylorotwell taylorotwell merged commit f8f41d3 into laravel:5.2 Jul 8, 2016
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.

2 participants