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'), ]; }
No description
Solution:
You probably have a queue driver different from sync and your queue is not running?
Jump to solution
4 Replies
Solution
Dennis Koch
Dennis Koch6d ago
You probably have a queue driver different from sync and your queue is not running?
billyma121182
billyma121182OP6d ago
Thanks Dennis, I'm not very experienced. is sync the correct driver?
billyma121182
billyma121182OP6d ago
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...
Dennis Koch
Dennis Koch5d ago
sync is okay for local, but it's not the sense of a queue. So better to have something else for production.

Did you find this page helpful?