Download the PHP package phoenix-lib/nova-nested-tree-attach-many without Composer
On this page you can find all versions of the php package phoenix-lib/nova-nested-tree-attach-many. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phoenix-lib/nova-nested-tree-attach-many
More information about phoenix-lib/nova-nested-tree-attach-many
Files in phoenix-lib/nova-nested-tree-attach-many
Package nova-nested-tree-attach-many
Short Description Nova vue-tree-select field for management nested category relations.
License MIT
Informations about the package nova-nested-tree-attach-many
Nova Nested Tree Attach Many
Belongs To Many Field for simple manage Nested relation tree. Enables attaching relationships easily.

RoadMap
- [x] Validation
- [x] Show selected categories on Detail
- [ ] Ability to pass your own tree
- [ ] Ability to
Delayed Loadingdata when tree has many records ( example 10k+ ).
Installation
Usage
This field uses tree provided by kalnoy/nestedset package
This field uses riophae/vue-treeselect under the hood
Your model should has NodeTrait form package kalnoy/nestedset see RoadMap
Options
Here are a few customization options
->searchable(bool $searchable)->withIdKey(string $idKey = 'id')// - id column name in your nested model->withLabelKey(string $labelKey = 'name')// - label column name in your nested model->withActiveKey(string $activeKey)// - active_status column name in your nested model used for disable options->withChildrenKey(string $childrenKey)// - children key in your nested model->withPlaceholder(string $placeholder)// - placeholder in tree select->withMaxHeight(int $maxHeight)->withSortValueBy(string $sortBy)// - @see https://vue-treeselect.js.org/#flat-mode-and-sort-values->withAlwaysOpen(bool $alwaysOpen)// - by default select is open, but you can change it behavior->withFlatten(bool $flatten)// - by default flatten is enabled, but you can change it behavior->useSingleSelect()// - ability for select only one value->useAsField()// - ability to write result to field without relations
Example of use with package whitecube/nova-flexible-content
Authorization
This field also respects policies: ie Role / Permission
- RolePolicy: attachAnyPermission($user, $role)
- RolePolicy: attachPermission($user, $role, $permission)
- PermissionPolicy: viewAny($user)
Validation
You can set min, max, size, required or custom rule objects
Contributing
Feel free to suggest changes, ask for new features or fix bugs yourself.