PHP code example of think.studio / nova-entity-select-field
1. Go to this page and download the library: Download think.studio/nova-entity-select-field library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
think.studio / nova-entity-select-field example snippets
public function fields() {
return [
\NovaEntitySelectField\EntitySelect::make(Member::class),
\NovaEntitySelectField\EntitySelect::make(Member::class, 'Main Member', 'other_main_member')
->nullable()
->limit(4),
];
}