lathanhvien/custom-belongs-to-many-field

belongsToMany nova representation in field.

Installs: 19 231

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/lathanhvien/custom-belongs-to-many-field

v1.0.0 2019-11-07 03:04 UTC

This package is auto-updated.

Last update: 2025-10-07 16:09:47 UTC


README

Installation

$ composer require lathanhvien/custom-belongs-to-many-field  

Usage

This package extend from Benjacho/belongs-to-many-field-nova package, check it to know all support functions.
I add more function optionsShow($array) to show columns of $array on Index and Detail page. Use it like follow:

use Pifpif\CustomBelongsToManyField\CustomBelongsToManyField;  

CustomBelongsToManyField::make('Athletes', 'athletes', 'App\Nova\Athlete')
    ->optionsLabel('first_name')  
    ->optionsShow(['first_name','last_name'])  

Support

If you have any ideas about this package, feel free to contact me at gmail: b.thanhdung@gmail.com or skype: xprotoprotox

License

This package is available under the MIT license.