I am trying to implement the csv export but file not created.
I have added the code and migrations and everything goes exactly as the tutorial but the csv file is not generated. In the export table the file is listed but there are 0 successful rows. Also if I change the field in the DecorExporter.php file to one that does not exist no errors are generated. See below. Any advice gratefully received.
public static function getColumns(): array
{
return [
ExportColumn::make('Not-a-field'),
];
}

Solution:Jump to solution
You probably have a queue driver different from
sync
and your queue is not running?4 Replies
Solution
You probably have a queue driver different from
sync
and your queue is not running?Thanks Dennis, I'm not very experienced. is sync the correct driver?
All sorted. Thanks Dennis.
For anybody struggling just set queue to 'sync' in the .env file.
Good article here https://github.com/filamentphp/filament/discussions/13264
GitHub
How to solve filament export doesn’t work in laravel 11 · filamentp...
In case someone needs this, by default, laravel 11 will set your QUEUE_CONNECTION to database, that's why it doesn't work until you run the php artisan queue:work in my case, so I need to c...
sync
is okay for local, but it's not the sense of a queue. So better to have something else for production.