PHP code example of imumz / nova-copy-field

1. Go to this page and download the library: Download imumz/nova-copy-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/ */

    

imumz / nova-copy-field example snippets


use Imumz\NovaCopyField\NovaCopyField;
...
NovaCopyField::make('Copy')
  ->copyFromTo([
    'field_to_copy' => 'field_to_paste',
    'field_to_copy_2' => 'field_to_paste_2',
    'field_to_copy_3' => 'field_to_paste_3',
    'field_to_copy_4' => 'field_to_paste_4',
    'field_to_copy_5' => 'field_to_paste_5',
  ])

NovaCopyField::make('Copy Fields')
  ->copyFromTo([
    'name' => 'email',
  ])