Releationship doesn't seem to work in Filter

Hey,

On a page with OrderItems I am trying to add a filter with suppliers. An order has a supplier.

So this doesn't work:

Tables\Filters\SelectFilter::make('order.supplier.name')
                    ->relationship('order', 'supplier.name')


It gives me an Alpine error as in the screenshot.

Any suggestions?
Screenshot_2024-01-04_at_22.07.18.png
Was this page helpful?