© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
24 replies
Raj Siva-Rajah

Using an enum with a toggle

Does anyone know of a clean way to use enums with toggles? One of my models has a status column with only 2 values - active and inactive. I want the toggle to switch between these values. I'd prefer to use an enum vs a boolean because I want to display the status using a badge (with labels, icons and colors).
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

defaultSort() with an enum
FilamentFFilament / ❓┊help
9mo ago
Using an Enum class with Select in form
FilamentFFilament / ❓┊help
2mo ago
translating an ENUM ???
FilamentFFilament / ❓┊help
3y ago
Override `getColors()` from enum for toggle buttons
FilamentFFilament / ❓┊help
2y ago