hi Saad,
If without controller, you need use javascript to handle that. coz i think laravel-excel is under server (PHP).
You can search in google how to do that with javascript. Hopely can help you.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I am using laravel-excel package for excel export, and successfully downloading the data from controller method as given in the docs. However, I have some customization in the blade page. Is there a method to download the data displayed in the TABLE in the blade view directly from the page instead of using controller method?
Thanks, Saad
Please or to participate in this conversation.