PHPackages                             stdioh/nova-duplicate-field - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. stdioh/nova-duplicate-field

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

stdioh/nova-duplicate-field
===========================

A Laravel Nova field to duplicate records. This package is a fork from jackabox/nova-duplicate-field

0.3.2(6y ago)04MITPHPPHP &gt;=7.1.0

Since Oct 31Pushed 6y agoCompare

[ Source](https://github.com/stdioh/nova-duplicate-field)[ Packagist](https://packagist.org/packages/stdioh/nova-duplicate-field)[ GitHub Sponsors](https://github.com/jackabox)[ Patreon](https://www.patreon.com/jackabox)[ RSS](/packages/stdioh-nova-duplicate-field/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (10)Used By (0)

[![Laravel Nova Duplicate Model](https://github.com/jackabox/nova-duplicate-field/raw/master/title.png)](https://github.com/jackabox/nova-duplicate-field/raw/master/title.png)
===============================================================================================================================================================================

[](#)

### Information

[](#information)

[![GitHub release (latest by date)](https://camo.githubusercontent.com/91a0860663fc4648dcefb5f076e86115517b46c8f84c3cdc4e4b9c152b556de7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6a61636b61626f782f6e6f76612d6475706c69636174652d6669656c643f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/91a0860663fc4648dcefb5f076e86115517b46c8f84c3cdc4e4b9c152b556de7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6a61636b61626f782f6e6f76612d6475706c69636174652d6669656c643f7374796c653d666c61742d737175617265)[![Packagist](https://camo.githubusercontent.com/b3053a43ffce564dbd8d7c81b9e633ed93382c51379a47612683197dafa10958/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a61636b61626f782f6e6f76612d6475706c69636174652d6669656c643f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/b3053a43ffce564dbd8d7c81b9e633ed93382c51379a47612683197dafa10958/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a61636b61626f782f6e6f76612d6475706c69636174652d6669656c643f7374796c653d666c61742d737175617265)[![GitHub](https://camo.githubusercontent.com/1b4ffcbb1f19a11b051b69aa37ea4a24feb3457242b9a15b3ee1fc94f0a2802e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a61636b61626f782f6e6f76612d6475706c69636174652d6669656c643f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/1b4ffcbb1f19a11b051b69aa37ea4a24feb3457242b9a15b3ee1fc94f0a2802e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a61636b61626f782f6e6f76612d6475706c69636174652d6669656c643f7374796c653d666c61742d737175617265)

Allow users to duplicate a record through the Laravel Nova Admin Panel along with any relations that are required (currently works with HasMany).

### Installation

[](#installation)

```
composer require stdioh/nova-duplicate-field

```

Reference the duplicate field at the top of your Nova resource and then include the necessary code within the fields.

```
use Jackabox\DuplicateField\DuplicateField
```

```
DuplicateField::make('Duplicate')
    ->withMeta([
        'resource' => 'specialisms', // resource url
        'model' => 'App\Models\Specialism', // model path
        'id' => $this->id, // id of record
        'relations' => ['one', 'two'], // an array of any relations to load (nullable).
        'except' => ['status'], // an array of fields to not replicate (nullable).
        'override' => ['status' => 'pending'] // an array of fields and values which will be set on the modal after duplicating (nullable).
    ]),
```

Duplicate field only works on the index view at the moment (plans to expand this are coming) and already passes through `onlyOnIndex()` as an option.

### Hooking Into Replication

[](#hooking-into-replication)

**Duplicate Field** uses a relatively standard replicate method which is available via the Eloquent model. To modify data as you are duplicating the field use an observer on the `replicating` method.

### Issues

[](#issues)

If there are any issues or requests feel free to open a GitHub issue or a pull request.

### Todo

[](#todo)

- Duplicate relations alongside the main post.
    - Integrate reattaching of relations, rather than needing to duplicate (i.e. belongsToMany)
- Catch errors to the end user.
- Alert for the user (confirmation possibly).
- Documentation on how to hide/show when needed.
- Documentation on how to hook into replication.
- Add a button to the resource view.
- Clean up methods for `v1`

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~70 days

Recently: every ~115 days

Total

8

Last Release

2260d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4493827?v=4)[jbordon](/maintainers/jbordon)[@jbordon](https://github.com/jbordon)

---

Top Contributors

[![jackabox](https://avatars.githubusercontent.com/u/3618433?v=4)](https://github.com/jackabox "jackabox (16 commits)")[![stdioh](https://avatars.githubusercontent.com/u/1030048?v=4)](https://github.com/stdioh "stdioh (5 commits)")[![bajramemini](https://avatars.githubusercontent.com/u/3426944?v=4)](https://github.com/bajramemini "bajramemini (1 commits)")

---

Tags

laravelduplicatenova

### Embed Badge

![Health badge](/badges/stdioh-nova-duplicate-field/health.svg)

```
[![Health](https://phpackages.com/badges/stdioh-nova-duplicate-field/health.svg)](https://phpackages.com/packages/stdioh-nova-duplicate-field)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[jackabox/nova-duplicate-field

A Laravel Nova field to duplicate records.

30111.5k](/packages/jackabox-nova-duplicate-field)[genealabs/laravel-overridable-model

Provide a uniform method of allowing models to be overridden in Laravel.

92398.0k2](/packages/genealabs-laravel-overridable-model)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17165.2k](/packages/murdercode-nova4-tinymce-editor)[yieldstudio/nova-google-autocomplete

A Laravel Nova Google autocomplete field.

12218.4k](/packages/yieldstudio-nova-google-autocomplete)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
