Set uuid string for temporary filename

This commit is contained in:
Philipp Lang 2023-11-29 13:03:37 +01:00
parent 6d88ccb8f1
commit 5a5f1756e1
1 changed files with 9 additions and 9 deletions

View File

@ -72,7 +72,7 @@ abstract class BaseCompiler implements Responsable
protected function prepareForCompilation(Document $document): void
{
$workDir = '/tmp/'.Str::random(32);
$workDir = '/tmp/' . Str::uuid()->toString();
mkdir($workDir, 0777, true);
$this->file = new File($workDir . '/' . $document->compiledFilename(), false);
}