"The mistake," she said, "was thinking PDFs were just 'views' you render and forget. They're not. They're documents with their own lifecycle. PDFDrive treats them that way. It's not a library. It's an engine."
$pdf = PDFDrive::drive(new ShipmentManifest($shipment))->generate(); Two seconds later, a file appeared: storage/app/manifests/REF-2049.pdf . laravel pdfdrive
She added one line to her controller: