Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
B

Belongs to many field

Installation Instructions

Installation

composer require ostheneo/nova-fields

Readme

NovaFields

This package will include a group of fields that haven't been updated yet for nova v4 The first one is Benjacho/belongs-to-many-field-nova

Belongs To Many Field Nova With Dependant

Belongs To Many field to represent many to many relationship in field. This Field allow attaching relationships easily.

Screen Shot 2022-05-06 at 5 07 55 AM

Installation

composer require ostheneo/nova-fields

Usage

In the resource you need to pass:

  • Method make ('label', 'many to many relationship function name', 'Nova Resource Relationship')
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),
    ];
}

License

The MIT License (MIT). Please see License File for more information.

Screenshots

Back to Top
Added 3 years ago
Last updated 3 Years Ago
Version 1.1
Composer
ostheneo/nova-fields
GitHub stars 7
Packagist downloads 61,374

Favorites

1 user favorited

Rating

5.00
(out of 5)
★★★★★
★★★★
★★★
★★
1 ratings

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas