Filter::morphRelation()
accepts many Filter::morphType()
s.
Filter::morphType()
accepts either:
Fully Qualified Class Name
for specific polymorphic types.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)Target::alias()
will provide you with full control over the array types.*.type
value and database *_type
column value.