trinityrank/belongs-to-many-field

1.0.0 2022-05-06 12:49 UTC

This package is auto-updated.

Last update: 2024-11-06 18:18:39 UTC


README

Belongs To Many Field to represent many to many relationship in field.

  • Laravel Nova 4
  • Vue 3
  • Dark mode support

Installation

You can require this package using composer:

composer require trinityrank/belongs-to-many-field

Usage

In the nova resource you need to pass:

  • Method make ('label', 'many to many relationship function name', 'Nova Resource Relationship')
use TrinityRank\BelongsToManyField\BelongsToManyField;

public function fields(Request $request){
    return [
        BelongsToManyField::make('Job Tags','tags','App\Nova\Jobs\Tag'),
    ];
}

Image of character counter