PHP code example of autumndev / nova-multiselect

1. Go to this page and download the library: Download autumndev/nova-multiselect 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/ */

    

autumndev / nova-multiselect example snippets


public function fields(Request $request)
{
    return [
        MultiSelect::make('Category', 'categories')->options(\App\Models\Category::get(['id', 'name']))->placeHolder('Select Categories')
        ->attachAdditionalRelationData(['type' => 'modes']),
    ];
}