PHP code example of mohkoma / nova-multiselect-checkboxes

1. Go to this page and download the library: Download mohkoma/nova-multiselect-checkboxes library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mohkoma / nova-multiselect-checkboxes example snippets


use Nova\MultiselectCheckboxes\MultiselectCheckboxes;

MultiselectCheckboxes::make('Options', 'FIELD_NAME')
->options($this->{FIELD_NAME}->pluck('name', 'id'))
->placeholder('Options'),

use Nova\MultiselectCheckboxes\MultiselectCheckboxes;

->options($this->{FIELD_NAME}->pluck('name', 'id'), [23, 34, 66, 76])

use Nova\MultiselectCheckboxes\MultiselectCheckboxes;

MultiselectCheckboxes::make('Options', 'FIELD_NAME')
->options($this->{FIELD_NAME}->pluck('name', 'id'))
->placeholder('Options')
->returnUnchecked(),