Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
M

MultiSelect

This package is possibly abandoned. Please proceed with care.

Readme

  1. composer require arku/nova-multiselect

  2. Edit your Nova resource fields method

2.1 Get your data first to the numeric array (key => value)

2.2 Get your selected options in the seperated array (only keys)

$data = getSomeData();
$selectedOptions = getSelectedOptions();

2.3 Create a multiselect Field. Don't forget to import Nova\Multiselect\Multiselect.

Pass to the make method two params - human view name and database field to store it. Database field must be able to save text (json).

Pass as options your data and selected options

return [
    Multiselect::make('HUMAN_VIEW_NAME', 'DATABASE_FIELD_NAME')->options($data, $selectedOptions),
]
Back to Top
Added 7 years ago

This package is listed on the Packagist API, but has no stable tags.

Please note that the Packagist cache is pretty long, so some times you just need to check back in an hour.

Favorites

1 user favorited

Rating

N/A
(out of 5)
★★★★★
★★★★
★★★
★★
0 ratings

Tags

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas