mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Update 09-export.md
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user