Allowing Filters
In Detail
Field
Relation
Morph Relation
Filter::morphRelation()
accepts many Filter::morphType()
s.
Morph Type
Filter::morphType()
accepts either:
Fully Qualified Class Name
for specific polymorphic types.
This package will use the registered relation morph map alias of the model as the value for the types array (types.*.type
).
When your model is not registered in the relation morph map - this package will use the database table name of the model for the value to be used in the types array (types.*.type
).
If you would like to not expose database names to the frontend then you should use Target::alias()
(described below)
- Using
Target::alias()
will provide you with full control over the arraytypes.*.type
value and database*_type
column value.