Why is this Dowloand Process not working?

I made a button coding below to download pdf, but when I press the print button, any download does not start, it does not give an error.
1 Reply
toeknee
toeknee2y ago
You need to return the stream soo: return response()->download($filePath); Im write the file to a tmp dir then return the path and delete after download
Want results from more Discord servers?
Add your server