FilamentF
Filament3y ago
1 reply
FranklySteve

Help using a filter on table with relationship and PHP Enum please?

Hi, I'm trying to create a filter in a table using a relationship that uses a PHP enum for it's options. I've so far got got the following, but it has no effect on the displayed data. Any pointers please?

Thanks

SelectFilter::make('invoice.paid_status')
                    ->relationship('invoice', 'paid_status')
                    ->options(PaidStatus::class)
                    ->attribute(PaidStatus::class),
Was this page helpful?