Invoices::getByUUID($uuid), ]; $filename = 'invoice-'.$uuid.'.pdf'; return PDF::view('Shop.Invoices.pdf', $data, $filename); } }