trinityrank / belongs-to-many-field
A Laravel Nova field.
1.0.0
2022-05-06 12:49 UTC
Requires
- php: ^7.3|^8.0
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'), ]; }