Relationship Fields in FiltersCreated 4 years ago by emergingdzns
How do I make the relationship fields in the filters of the table builder display the labels of the options and not the ids?
For example, I have a Category model and a relationship in the module for the CategoryModel. Same for the Type model. Then the
$filters array looks like this:
protected $filters = [ 'name', 'category', 'type', ];
But when I view it, and pull down the select list, the ids appear. See this screenshot: