This question already has an answer here:
- How to delete a file via PHP? 6 answers
I have created a PDF in Laravel 5 by Laravel-dompdf.
$pdf = PDF::loadHTML($html)
->setPaper('a4', 'landscape')
->setWarnings(false)
->save('documents/f_'.$pdf_name.'.pdf');
//$pdf->download('deposit.pdf');
My question is, How can I delete it now? I didn´t find nothing in the documentation.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire