© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Wim

Filament table enum: enum does not exist

I have a database table where a column 'organization' can be 0 or 1 (non-organization or organization). The column type is
tinyint(1)
tinyint(1)
. I was using the following code with an enum() function

           Tables\Columns\TextColumn::make('organization')
                    ->badge()
                    ->color(fn (string $state): string => match ($state) {
                        '0' => 'danger',
                        '1' => 'info'
                    })
                    ->enum([
                        '0' => 'Non-Organization',
                        '1' => 'Organization',
                    ]),
           Tables\Columns\TextColumn::make('organization')
                    ->badge()
                    ->color(fn (string $state): string => match ($state) {
                        '0' => 'danger',
                        '1' => 'info'
                    })
                    ->enum([
                        '0' => 'Non-Organization',
                        '1' => 'Organization',
                    ]),

But I'm getting
Method Filament\Tables\Columns\TextColumn::enum does not exist.
Method Filament\Tables\Columns\TextColumn::enum does not exist.
error.

Any ideas?
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

Method Filament\Actions\ExportAction::table does not exist.
FilamentFFilament / ❓┊help
2y ago
Method Filament\Tables\Table::extremePaginationLinks does not exist.
FilamentFFilament / ❓┊help
2y ago
Table::prependActions does not exist.
FilamentFFilament / ❓┊help
3y ago
Target class [filament] does not exist. ?
FilamentFFilament / ❓┊help
2y ago