Closed tanthammar closed 3 days ago
Can you please specify which rules would work well on this field? Since these are pre-defined options and not variable like TagsInput
Here is an example:
ToggleButtons::make('booked_seat_id')
->multiple()
->inline()
->grouped()
->options($booking->bookedSeats->pluck('bookable.name', 'id'))
->nestedRecursiveRules(Rule:in($booking->bookedSeats->pluck('id')->toArray()))
Description
This PR adds the missing trait to be able to define array rules on
ToggleButtons::make('foo')->multiple()