How to search for several attributes in filters with relashionships
How to make filters/columns/inputs with a selector by relashionship, where you could show and filter not just one attribute, but several? For example, by email and name of the associated post
6 Replies
can you eloborate your use case?
Maybe you mean getOptionLabelFromRecordUsing?
https://laraveldaily.com/post/filament-select-with-relationship-custom-dropdown-label-titleattribute-options
I have companies table and related tables (e.g. employees). Each employee has company_id field. So I want to show and filter by companies in the employee table, and use such fields like company_name, email, phone. I tried to make several filters at first, but it doesn't work such way
with ->searchable() it gives errors
It's hard to comment without seeing/debugg your full code
It is not clear whether you are trying to create filter or select form field?
I wanna them all