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
Requires
- php: ^8.1
- laravel/nova: ^4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.20
- orchestra/testbench: ^8.5
- phpunit/phpunit: ^10.2
- psalm/plugin-laravel: ^2.8
- vimeo/psalm: ^5.13
README
Package allow implement functionality similar to "BelongsTo" but for general fields purpose, not for relation one (for example flexible content).
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), ]; }