Grouping options of a Select field with a relationship.
The Select field already has the grouping options feature:
https://i.imgur.com/UchdbT0.png
But I want to use that feature in combination with a relationship.
Eg: in an Invoice Filament resource creation page, I'll have a Select field with the relationship "prices", and the prices should be grouped by their "products" which is a HasMany relationship (Products has many prices - price belongs to product), and of course the user will select the prices not the products, just like Stripe:
https://i.imgur.com/3sFS5mY.png
1 Reply
@Filip did you ever figure this out? I'm in the same prediciment.