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)
. I was using the following code with an enum() function
But I'm getting Method Filament\Tables\Columns\TextColumn::enum does not exist.
error.
Any ideas?1 Reply
Are you looking at v2.x documentation? I don't believe that exists on v3.x tables.
In v3.x you have a few options:
An Icon Column
https://filamentphp.com/docs/3.x/tables/columns/icon#overview
A Toggle Column
https://filamentphp.com/docs/3.x/tables/columns/toggle#overview
Creating an actual Enum class
https://filamentphp.com/docs/3.x/support/enums#overview