'PDFMerger for Laravel - Cannot Run Script After Merge('browser')

    $pdf = new \LynX39\LaraPdfMerger\PdfManage;

    $pdf->addPDF(storage_path('public/pdfTemp').'/myFile01.pdf', 'all');
    $pdf->addPDF(storage_path('public/pdfTemp').'/myFile02.pdf', 'all');

    $pdf->merge('browser', 'complete.pdf', 'L');

    // The code below is not running !! why??
    Storage::delete('pdfTemp/myFile01.pdf');
    Storage::delete('pdfTemp/myFile02.pdf');

Based on the code above, I use PdfMerger for PHP Laravel Framework...

The problem is the code, which is after

$pdf->merge('browser', 'complete.pdf', 'L');

and any code below the line will not running.

Why?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source