I have a select box with currently shows a list of all animals
However I don't want to show all animals. I just want to show animals that have a status (=database column) of 'ready'. Can this be done in Filament v3
I was trying this to no success:
3 Replies
relationship()
can take a query so you can do something like ->relationship('animal', 'name', modifyQueryUsing: fn (Builder $query) => $query->where('status', $get('animal_id'))
Be sure to import Builder
Thanks! Works like a charm