Skip to content

Commit

Permalink
just use uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 2, 2016
1 parent c727cc8 commit 5811bc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Http/FileHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Illuminate\Http;

use Ramsey\Uuid\Uuid;

trait FileHelpers
{
/**
Expand Down Expand Up @@ -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();
}
}

0 comments on commit 5811bc3

Please sign in to comment.