Checkbox List, select at least one

Hi, I have a checkbox list where at least one checkbox needs to be selected. I thought it would be easy using the required but it is allowing me to save the form without one checkbox selected

The checkboxlist is in a custom livewire component

Forms\Components\CheckboxList::make('users')
  ->bulkToggleable()
  ->options(User::all()->pluck('name', 'name'))
  ->hidden(fn() =>...)
  ->required()


I also tried adding
->rules([function()....])


But I cant get this working either. It never even validates the thing
Was this page helpful?