FilamentF
Filament2y ago
Abi

Adding a filter on a RelationManager Table with `relationship` doesn't work

On a RelationManger class, I have added a
SelectFilter
to the table and using the relationship method to fill the Select Filter. But it doesn't seem to fill the Select.

 Tables\Filters\SelectFilter::make('Option 1')
      ->relationship('option1', 'key')
      ->attribute('option_1_value'),


The option1 is a BelongsTo relationship added on the model.
Was this page helpful?