diff --git a/src/Illuminate/Http/FileHelpers.php b/src/Illuminate/Http/FileHelpers.php index 1c26e1a3706b..6348fda82bb1 100644 --- a/src/Illuminate/Http/FileHelpers.php +++ b/src/Illuminate/Http/FileHelpers.php @@ -2,6 +2,8 @@ namespace Illuminate\Http; +use Ramsey\Uuid\Uuid; + trait FileHelpers { /** @@ -46,6 +48,6 @@ public function hashName($path = null) $path = rtrim($path, '/').'/'; } - return $path.str_random(32).'.'.$this->guessExtension(); + return $path.Uuid::uuid4()->getHex().'.'.$this->guessExtension(); } }