How to access filter values in other filter field in table filter
As shown in the attached image, I want to add query in brand_id and grade_id which include cargo_id, so when cargo_id is selected the qiery is applied and related records are loaded

8 Replies
You can customize the relationship query using
https://filamentphp.com/docs/4.x/tables/filters/select#customizing-the-select-filter-relationship-query
in your case
Might work
if the Get doesnt work you can try with one of these:
https://filamentphp.com/docs/4.x/tables/filters/overview#filter-utility-injection
first solution didn't worked
Then I tried by injecting BaseFilters but i don't know which method to use to get the value of filter
trial and error. did you dd($filter) to see what it has
I tried using dd($filter) but i am little confused. The response i received is attached as image can u help me with this
.

seeing the print, you must access $filter -> table -> filters, dont know if there's a $filter->getTable()->getFilters or something
you gotta figure it out because I never needed to use this
check if BaseFilter class has any functions that can help you