Update 09-export.md

This commit is contained in:
Dan Harrin
2024-10-21 10:36:30 +01:00
committed by GitHub
parent f88acdc677
commit ee8105c98b
@@ -72,9 +72,6 @@ public function table(Table $table): Table
The ["exporter" class needs to be created](#creating-an-exporter) to tell Filament how to export each row.
## Note
Created export files are the user's responsibility to delete/manage. Filament does not automatically delete them.
## Creating an exporter
To create an exporter class for a model, you may use the `make:filament-exporter` command, passing the name of a model:
@@ -389,6 +386,8 @@ public function getFileDisk(): string
}
```
Export files that are created are the developer's responsibility to delete if they wish. Filament does not delete these files in case the exports need to be downloaded again at a later date.
### Configuring the export file names
By default, exported files will have a name generated based on the ID and type of the export. You can also use the `fileName()` method on the action to customize the file name: