| Package Data | |
|---|---|
| Maintainer Username: | dillingham |
| Package Create Date: | 2019-02-02 |
| Package Last Update: | 2023-10-10 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-03 15:19:56 |
| Package Statistics | |
|---|---|
| Total Downloads: | 1,908,665 |
| Monthly Downloads: | 9,063 |
| Daily Downloads: | 219 |
| Total Stars: | 272 |
| Total Watchers: | 7 |
| Total Forks: | 112 |
| Total Open Issues: | 20 |
Belongs To Many create & edit form UI for Nova. Enables attaching relationships easily and includes validation.

composer require dillingham/nova-attach-many
use NovaAttachMany\AttachMany;
public function fields(Request $request)
{
return [
AttachMany::make('Permissions'),
];
}
You can set min, max, size or custom rule objects
->rules('min:5', 'max:10', 'size:10', new CustomRule)
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->help('<b>Tip:</b> help text') Set the help textThe attachable resources will be filtered by relatableQuery() So you can filter which resources are able to be attached
This field also respects policies: ie Role / Permission
[] Add pagination for large amount of resources
dkulyk helped with authorization