Skip to content

Commit

Permalink
Don't use uuid package in http file helper (#17046)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored and taylorotwell committed Dec 29, 2016
1 parent 322a9ad commit 101791e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Http/FileHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Illuminate\Http;

use Ramsey\Uuid\Uuid;
use Illuminate\Support\Str;

trait FileHelpers
{
Expand Down Expand Up @@ -48,6 +48,6 @@ public function hashName($path = null)
$path = rtrim($path, '/').'/';
}

return $path.Uuid::uuid4()->getHex().'.'.$this->guessExtension();
return $path.Str::random(40).'.'.$this->guessExtension();
}
}

0 comments on commit 101791e

Please sign in to comment.