Laravel Nova icon Nova Packages
R

Relationship Selector

Readme

Nova Relationship Selector

Latest Version on Github Total Downloads

Display your resource's relationships with a dropdown vs endless scrolling

image

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require eminiarts/nova-relationship-selector

Usage

use Eminiarts\RelationshipSelector\RelationshipSelector;
public function fields()
{
    return [
        
        // ...
        
        RelationshipSelector::make('Relations')
            ->addOption('Invoices', HasMany::make('Invoices'))
            ->addOption('Notes', HasMany::make('Notes'))
            ->addOption('Contacts', HasMany::make('Contacts'))
            ->addOption('Tags', MorphToMany::make('Tags')),
        
        // ...
        
    ];
}

With Select

If you want to display the Select on the right side, you can use the ->withSelect() function.

image

Back to Top
Added 6 years ago
Last updated 5 Years Ago
Version 1.0.0
Composer
eminiarts/nova-relationship-selector
GitHub stars 27
Packagist downloads 50,090

Favorites

20 users favorited

Rating

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

Contributors

Tags

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas