LaravelPackages.net
Acme Inc.
Toggle sidebar
ostheneo/nova-fields

A Laravel Nova field.

65.787
7
1.1
About ostheneo/nova-fields

ostheneo/nova-fields is a Laravel package for a laravel nova field.. It currently has 7 GitHub stars and 65.787 downloads on Packagist (latest version 1.1). Install it with composer require ostheneo/nova-fields. Discover more Laravel packages by ostheneo or browse all Laravel packages to compare alternatives.

Last updated

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.

Comments