Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

joedoe's avatar

Vue3 Call to Controller with parameters

Trying to call an Action in a Controller to use Laravel Excel (https://laravel-excel.com/)

return Excel::download(new WEExport($po_id, $po_no), 'we.xlsx');

That's working and a Excel File is downloaded if i use a href

<a href="po/generateWe/">EXPORT</a>

If i use a inertia Call it pass into the Controller Action, all Code is proceeded but Excel File never downloads. Proplem is for shure the way i call the Action

Is there any solution how to get this with inertia or a workaround with href including an array of parameter ?

0 likes
0 replies

Please or to participate in this conversation.