ostheneo / nova-fields
A Laravel Nova field.
Installs: 54 036
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 3
Forks: 4
Open Issues: 6
Requires
- php: ^7.3|^8.0
This package is auto-updated.
Last update: 2025-03-29 00:53:21 UTC
README
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.
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.