We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9301ea5 commit c561d2aCopy full SHA for c561d2a
src/PDFMerger/PDFMerger.php
@@ -16,6 +16,7 @@
16
use setasign\Fpdi\PdfParser\StreamReader;
17
use Illuminate\Filesystem\Filesystem;
18
use Illuminate\Support\Collection;
19
+use Illuminate\Support\Str;
20
21
class PDFMerger {
22
@@ -145,7 +146,7 @@ public function setFileName($fileName){
145
146
*/
147
public function addString($string, $pages = 'all', $orientation = null){
148
- $filePath = storage_path('tmp/'.str_random(16).'.pdf');
149
+ $filePath = storage_path('tmp/'.Str::random(16).'.pdf');
150
$this->oFilesystem->put($filePath, $string);
151
$this->tmpFiles->push($filePath);
152
0 commit comments