-
Is there a way to create Filters from query result? Something like :
|
Beta Was this translation helpful? Give feedback.
Answered by
rappasoft
Jul 13, 2021
Replies: 1 comment 2 replies
-
public function filters(): array
{
return [
'categories' => Filter::make('Categories')
->select(Categories::all()->map->only('id', 'name')),
];
} As long as whatever you send to |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
MxFlorin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As long as whatever you send to
select
is$key => $value