Filter::relation()
or Filter::morphRelation()
, fields within that relationship are not included in the allowed filter list.
You can specify allowed filters inside a relation in two ways.
includeRelationFields()
->includeRelationFields()
on Filter::relation()
or Filter::morphRelation()
.
AllowedField
filters within the allowedFilters()
method of the relation model.IsFilterable
.Filter::morphRelation()
, you should specify the models for which to include the relation fields for.
allowedFilters
->includeRelationFields()
, you can define allowedFilters
for each Filter::relation()
and Filter::morphType()
.