otrsw/nova-copy-field

This package is abandoned and no longer maintained. The author suggests using the imumz/nova-copy-field package instead.

A Laravel Nova field.

1.0.2 2021-01-20 06:23 UTC

This package is auto-updated.

Last update: 2021-01-20 07:52:08 UTC


README

Custom Laravel Nova copy field

Installation

composer require imumz/nova-copy-field

Usage

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',
  ])

Example

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

image