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

lukegalea16's avatar

Laravel Excel Queued Job Not Working/Not Starting Export

Hi,

This is my current code

return Excel::download(new BasicReportExport($data, count($headings), count($devices)), 'WW-' . $orgName . '-Device_Health-' . $startDate . '.xlsx');

Which I changed to

(new BasicReportExport($data, count($headings), count($devices)))->queue('WW-' . $orgName . '-Device_Health-' . $startDate . '.xlsx');

return back()->withSuccess('Export started!');

In my BasicReportExport I added use Exportable and included the package. Now when I press the button to queue the job instead of downloading I get nothing. Any idea how I can debug if the job is getting queued? Laravel Logs return no errors.

0 likes
4 replies
lukegalea16's avatar

@SilenceBringer apologies but I've never used queues in Laravel before and it was not mentioned in this guide. How can I set up a queue in Laravel please? Which is appropriate for this task.

Snapey's avatar

instead of downloading I get nothing

just hangs, or returns 'export started' ?

how does the user get the report now you converted to a job?

Have you looked in the laravel logs?

can you show your BasicReportExport file?

Please or to participate in this conversation.