marotura / nested-multiselect
A nested multiselect field for Laravel Nova
Package info
github.com/marotura-bv/nested-multiselect
Language:Vue
pkg:composer/marotura/nested-multiselect
1.0.3
2024-07-08 10:00 UTC
Requires
- php: ^8.0
This package is auto-updated.
Last update: 2026-03-08 13:26:09 UTC
README
A nested multiselect field for Laravel Nova. This package makes use of vue3-treeselect
To install this package use:
composer require marotura/nested-multiselect
This field extends the Nova Multiselect field. At the moment this is the most basic implementation.
NestedMultiselect::make('Nested', 'nested') ->options([ [ 'id' => 'a', 'label' => 'a', 'children' => [ [ 'id' => 'aa', 'label' => 'aa', ], [ 'id' => 'ab', 'label' => 'ab', ], ] ], [ 'id' => 'b', 'label' => 'b', ], [ 'id' => 'c', 'label' => 'c', ] ])
Also make sure to cast your field to array of json
protected $casts = [ 'nested' => 'json', ];