If I understand you correctly, you just need to make a link to the pdf so
<a href="file.pdf">Open the pdf!</a>
or if you use blade and the pdf file is somewhere in your public directory:
<a href="{{ asset('files/file.pdf') }}">Open the pdf!</a>
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
What's the best way to show a PDF in-browser with Laravel?
I want a sort of link that opens a new page and you can view the PDF with Chrome, Firefox, Opera etc
If I understand you correctly, you just need to make a link to the pdf so
<a href="file.pdf">Open the pdf!</a>
or if you use blade and the pdf file is somewhere in your public directory:
<a href="{{ asset('files/file.pdf') }}">Open the pdf!</a>
Please or to participate in this conversation.