Replies: 1 comment
-
|
Dude you are CREATING a PDF file from a Blade view. That's what the You need to return the PDF file using the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to generate a PDF using spatie/laravel-pdf with a very simple example, but nothing is downloaded and no response is shown in the browser.
Here is the exact code:
$fileName = "growth-report-{$child->name}-{$reportDate->format('Y-m')}.pdf";
->format('a4')
->download('test.pdf);
return $pdfExport;
I expected this to trigger a PDF download (test.pdf) in the browser.
Beta Was this translation helpful? Give feedback.
All reactions