[3.2.0] Unfixable ENUM export?
Hi this https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export#automatically-generating-exporter-columns
is unfixable? There is a workaround?
2 Replies
i'm trying to export a model that has ENUMS but i get this error
Filament\Actions\Exports\ExportColumn::getFormattedState(): Return value must be of type ?string, App\Enums\RepairStatus returned
any suggestions?
with this code
the error changes
Target [App\Enums\RepairStatus] is not instantiable while building [Illuminate\Bus\ChainedBatch, Filament\Actions\Exports\Jobs\PrepareCsvExport, Filament\Actions\Exports\Jobs\ExportCsv].
Do you maybe need to use
$record
with exports?
Just checked the docs you linked:
which accepts the $state of the cell, and optionally the Eloquent $record: