© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Ayz

2 resource columns from same db column

I store a simple "qty" field in a db table to represent the number of units of a product. However, it needs to be presented in the resource list as "packs" and "units". On the fly, the system should populate the columns with a rounded down division and modulo operation respectively. So 12 units of a product of 10 per pack collation should show up as 1 pack, 2 units (2 separate columns)

Filament is however ignoring a 2nd TextColumn::make call to same database column.

How can I achieve this objective? Like if a column could be made out of a function defined in the model.
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

2 DB objects for the same resource
FilamentFFilament / ❓┊help
11mo ago
two columns from a single database column
FilamentFFilament / ❓┊help
2y ago
2 Different Tables For The Same Resource
FilamentFFilament / ❓┊help
2y ago
table column dont display value from resource
FilamentFFilament / ❓┊help
2y ago