Overview
There is an convenience method onFilter::relation that allows you to easily define nested relationships.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Filter::relation that allows you to easily define nested relationships.
public function allowedFilters(): AllowedFilterList
{
return Filter::only(
Filter::relation('posts', [FilterType::HAS])->includeRelationFields()
->andNestedRelation(
Filter::relation('comments', [FilterType::HAS])->includeRelationFields()
),
);
}
