© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
Clément

Export action with Enum column

Hello, do you know if it's possible to export table when column is type Enum. Thanks
Solution
Hello, You can export table with enum column.
1. Add cast to you model:
protected function casts(): array
{
return [
'identification_type' => IdentificationTypeEnum::class,
];
}

2. Modify state enum column:
ExportColumn::make('identification_type')
->label(__('resources.customer.labels.identification_type'))
->state(fn($record) => $record->identification_type->getLabel()),
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to export table with enum column?
FilamentFFilament / ❓┊help
2y ago
Export Action didn't Export A Defined Column
FilamentFFilament / ❓┊help
11mo ago
How to covert enum value on Export Column?
FilamentFFilament / ❓┊help
6mo ago
Export Action with Filter
FilamentFFilament / ❓┊help
13mo ago