How can I set the directory for my exports? I'm using s3 but everything is going to
filament_exports/
filament_exports/
I want to change this to something more custom.
Solution
Ended up creating a custom Export model
<?phpnamespace App\Models;use App;use Filament\Actions\Exports\Models\Export as BaseExport;class Export extends BaseExport{ public function getFileDirectory(): string { // build full path here $fullPath = .... return $fullPath; }}
<?phpnamespace App\Models;use App;use Filament\Actions\Exports\Models\Export as BaseExport;class Export extends BaseExport{ public function getFileDirectory(): string { // build full path here $fullPath = .... return $fullPath; }}
and then binding it
// Bind custom Export model for Filament exports$this->app->bind( \Filament\Actions\Exports\Models\Export::class, \App\Models\Export::class);
// Bind custom Export model for Filament exports$this->app->bind( \Filament\Actions\Exports\Models\Export::class, \App\Models\Export::class);
Probably appending the path to the file might be the way to go also, didn't try that way.