Skip to content

Commit 813a081

Browse files
committed
wip
1 parent 182526a commit 813a081

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Fields/Relation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,14 @@ public function filters(Request $request): array
434434

435435
$sortables = $fields->sortable();
436436

437+
$filterables = $fields->filter(static function (Field $field): bool {
438+
return $field->isFilterable() && ! $field->isSearchable();
439+
});
440+
437441
return array_values(array_filter([
438442
$searchables->isNotEmpty() ? new Search($searchables) : null,
439443
$sortables->isNotEmpty() ? new Sort($sortables) : null,
444+
...$filterables->map->toFilter()->all(),
440445
]));
441446
}
442447

0 commit comments

Comments
 (0)