Pivot
, MorphPivot
).Model
).->pivot()
.->includeRelationFields()
on Filter::relation()
.User
$has
Role
.Role
$has
User
.Filter::field()
filters can be marked as pivot filters if you want the filter to be applied to a column on the intermediate table linking the models.
You must specify the parent model fqcn.
class Post
and class Tag
.
allowedFilters
method of both classes.posts
or tags
relationship.MorphToMany
relations, you can specify a list of models in the ->pivot()
method.