think.studio/nova-entity-select-field

Laravel Nova Entity Select Field. Package allow implement functionality similar to BelongsTo but for general fields purpose, not for relation one.

1.0.1 2023-07-14 06:46 UTC

This package is auto-updated.

Last update: 2024-10-14 09:39:40 UTC


README

Packagist License Packagist Version Total Downloads Build Status Code Coverage Scrutinizer Code Quality

Package allow implement functionality similar to "BelongsTo" but for general fields purpose, not for relation one (for example flexible content).

preview-form.png preview-details.png preview-index.png

Installation

You can install the package via composer:

composer require think.studio/nova-entity-select-field

Usage

public function fields() {
    return [
        \NovaEntitySelectField\EntitySelect::make(Member::class),
        \NovaEntitySelectField\EntitySelect::make(Member::class, 'Main Member', 'other_main_member')
                ->nullable()
                ->limit(4),
    ];
}

Credits

  • Think Studio