Check/uncheck checkboxes in the Laravel Nova Action Modal with BooleanGroup

  laravel, laravel-nova

I use Laravel Nova. On a resource I have an Action. The fields method returns a BooleanGroup Field:

return [
    BooleanGroup::make('Tagss')->options(
        [
            'one',
            'two',
            'three',
            'four'
        ]
    ),
];

Result:

enter image description here

I don’t know how to pre-check checkboxes. Let’s say ‘two’ should be checked when the modal loads, how to do this?

Source: Laravel

Leave a Reply