lathanhvien / custom-belongs-to-many-field
在字段中属于nova表示。
v1.0.0
2019-11-07 03:04 UTC
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-09-07 13:41:48 UTC
README
安装
$ composer require lathanhvien/custom-belongs-to-many-field
使用
此包扩展自Benjacho/belongs-to-many-field-nova包,查看它以了解所有支持的功能。
我添加了更多功能 optionsShow($array)
,用于在索引和详情页上显示$array的列。使用方法如下
use Pifpif\CustomBelongsToManyField\CustomBelongsToManyField; CustomBelongsToManyField::make('Athletes', 'athletes', 'App\Nova\Athlete') ->optionsLabel('first_name') ->optionsShow(['first_name','last_name'])
支持
如果您对这个包有任何想法,请随时通过gmail:b.thanhdung@gmail.com 或skype:xprotoprotox联系我
许可证
此包可在MIT许可证下使用。