Download the PHP package dillingham/nova-attach-many without Composer
On this page you can find all versions of the php package dillingham/nova-attach-many. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dillingham/nova-attach-many
More information about dillingham/nova-attach-many
Files in dillingham/nova-attach-many
Informations about the package nova-attach-many
Nova Attach Many
Belongs To Many create & edit form UI for Nova. Enables attaching relationships easily and includes validation.
Installation
Usage
You can explicitly define the relationship & Nova resource:
Display on detail:
This package only provides the create / edit views that BelongsToMany does not.
BelongsToMany should be used for displaying the table on detail views.
Validation
You can set min, max, size or custom rule objects
Options
Here are a few customization options
->showCounts()
Shows "selected/total"->showPreview()
Shows only selected->hideToolbar()
Removes search & select all->height('500px')
Set custom height->fullWidth()
Set to full width->showRefresh()
Request the resources again->showSubtitle()
Show the resource's subtitle->help('<b>Tip:</b> help text')
Set the help text
All Options Demo
Relatable
The attachable resources will be filtered by relatableQuery() So you can filter which resources are able to be attached
Being Notified of Changes
You can add a method to the resource to be notified of the changes that have happened:
The method must be a camel cased version of the attribute name, followed by Synced
. For example:
Authorization
This field also respects policies: ie Role / Permission
- RolePolicy: attachAnyPermission($user, $role)
- RolePolicy: attachPermission($user, $role, $permission)
- PermissionPolicy: viewAny($user)
Author
Hi 👋, Im Brian D. I created this Nova package and others
Hope you find it useful. Feel free to reach out with feedback.
Follow me on twitter: @im_brian_d