© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
4 replies
Rick Doetinchem

Enum, select and relationship

3️⃣v3Table builderForm builder
I have two tables. The first table, orders contains a relationship to the table products. Under the table products, the status of the product is stored as 1 = in stock, 2 = out of stock, 3 = no longer available. An enum is used to convert the integer 1, 2 or 3 into a label. This works fine in the products resource , but how can I get this done in the orders resource? There I now have a select field which shows the values 1, 2 or 3 based on the relationship. But I want to extract the integer values from the relationship and then use the enum to convert the values to labels. How do you do that with a select in combination with a relationship?
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 use enum with select and relationship?
FilamentFFilament / ❓┊help
12mo ago
Select relationship
FilamentFFilament / ❓┊help
3y ago
Enum with form->select
FilamentFFilament / ❓┊help
3y ago
Repeater relationship select
FilamentFFilament / ❓┊help
13mo ago