© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
7 replies
joao nivaldo

How to Filter by virtual attribute.

Hi, in my model I have some attributes that are virtual, that is, they do not actually exist in the database table. I would like to know if it is possible to use them in the Table Builder filters? If so, how do I proceed with this so as not to generate an error of an inexistent column in the database. Thank you.
Solution
The filters query against the database, so you're not going to be able to filter against anything that is not part of the model at the database level.
Jump to solution
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

Select filter attribute name by relation
FilamentFFilament / ❓┊help
12mo ago
Filter by multiple Relationship attributes
FilamentFFilament / ❓┊help
3y ago
Sort by Attribute
FilamentFFilament / ❓┊help
3y ago
How to sort TextColumn by relationship date attribute?
FilamentFFilament / ❓┊help
3y ago