定制 sz3jdii/nova-attach-many-ajax 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sz3jdii/nova-attach-many-ajax

最新稳定版本:v2.0.3

Composer 安装命令:

composer require sz3jdii/nova-attach-many-ajax

包简介

Attach Many Nova AJAX field

README 文档

README

Latest Version on Github Total Downloads

Belongs To Many Ajax create & edit form UI for Nova. Enables attaching relationships easily and includes validation.

attach-many

Installation

composer require sz3jdii/nova-attach-many-ajax

Usage

use NovaAttachMany\AttachMany;
public function fields(Request $request)
{
    return [
        AttachMany::make('Permissions'),
    ];
}

Validation

You can set min, max, size or custom rule objects

->rules('min:5', 'max:10', 'size:10', new CustomRule)

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
  • ->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

Authorization

This field also respects policies: ie Role / Permission

  • RolePolicy: attachAnyPermission($user, $role)
  • RolePolicy: attachPermission($user, $role, $permission)
  • PermissionPolicy: viewAny($user)

统计信息

  • 总下载量: 823
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 111
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-11-15