Replies: 3 comments
-
@alrisha did you ever figure out what the issue was with this? I have run into the same issue and can't figure out how to get FromGenerator to work with queues. |
Beta Was this translation helpful? Give feedback.
-
the same problem |
Beta Was this translation helpful? Give feedback.
-
Yes, class LeadArchiveExport implements FromQuery ShouldAutoSize, WithColumnFormatting, WithColumnWidths, WithCustomQuerySize, WithHeadings, WithMapping, WithStyles
{
....
public function query(): EloquentBuilder
{
return Lead::query();
} Since many users face similar issues, perhaps we could document this behaviour better and/or throw exception if an unsupported export is passed to a queued writer instead of silently exporting an empty file. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.. When i try to use queue with FromGenerator, i have a blank file with only headers...
Laravel Excel version: 3.1.48
Laravel version: 10.22.0
PHP version: 8.1
This is my class
With this command
The export works perfectly.
But if I try to use queue
I have a empty file with only headers...
Maybe queue and FromGenerator are NOT compatible ?
PS: I should try to use FromGenerator because with FromQuery I have a memory error...
Beta Was this translation helpful? Give feedback.
All reactions