PHP code example of aqjw / nova-has-one-inject-field
1. Go to this page and download the library: Download aqjw/nova-has-one-inject-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/ */
aqjw / nova-has-one-inject-field example snippets
use Aqjw\HasOneInjectField\HasOneInjectField;
...
return [
...
HasOneInjectField::make('Measurement', 'measurement', \App\Nova\Measurement::class),
...
];