Downloads
Stars
Version
$ composer require lathanhvien/custom-belongs-to-many-field
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'])
If you have any ideas about this package, feel free to contact me at gmail: [email protected] or skype: xprotoprotox
This package is available under the MIT license.