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.4] Cache the file hashname #17879

Merged
merged 1 commit into from
Feb 10, 2017
Merged

[5.4] Cache the file hashname #17879

merged 1 commit into from
Feb 10, 2017

Conversation

themsaid
Copy link
Member

@themsaid themsaid commented Feb 10, 2017

Currently calling request()->file('profile')->hashName() multiple times returns different values, this PR makes sure every file hash its has generated only once.

Imaging a scenario where you store a file using $file->store('profile'), you need to save the file name in the DB for later use, if you run $file->hashName() after calling store() a new name will be generated.

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