ostheneo / nova-fields
一个 Laravel Nova 字段。
1.1
2022-05-06 10:03 UTC
Requires
- php: ^7.3|^8.0
This package is auto-updated.
Last update: 2024-08-29 03:03:08 UTC
README
此包将包括一组尚未更新为 nova v4 的字段。第一个是 Benjacho/belongs-to-many-field-nova
带有依赖项的多对多字段 Nova
多对多字段用于在字段中表示多对多关系。此字段允许轻松关联关系。
安装
composer require ostheneo/nova-fields
使用方法
在所需资源中,您需要传递
- 方法 make ('标签', '多对多关系函数名称', 'Nova 资源关系')
use OsTheNeo\NovaFields\BelongsToManyField; public function fields(Request $request){ return [ ..., //If you are using with BelongsToMany native Field, put this field after BelongsToManyField::make('Role Label', 'roles', Role::class), ]; }
许可协议
MIT 许可协议 (MIT)。请参阅 许可文件 了解更多信息。