Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Create file with unique file name
<?php tempnam(string $directory, string $prefix): string|false
<?php         $path = realpath($path) ?: $path;



        $tempPath = tempnam(dirname($path), basename($path));




        if (! is_null($mode)) {
<?php             ViewFacade::addLocation(sys_get_temp_dir());

        }



        $tempFileInfo = pathinfo(tempnam($tempDirectory, 'laravel-blade'));



        $tempFile = $tempFileInfo['dirname'].'/'.$tempFileInfo['filename'].'.blade.php';
<?php     protected function setUp(): void

    {

        $this->path = @tempnam('tmp', 'file_failed_job_provider_test');

        $this->provider = new FileFailedJobProvider($this->path);

    }