PHPackages                             jackabox/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. jackabox/nova-duplicate-field

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

jackabox/nova-duplicate-field
=============================

A Laravel Nova field to duplicate records.

0.3.0(6y ago)30111.5k—2.2%40[3 issues](https://github.com/jackabox/nova-duplicate-field/issues)[7 PRs](https://github.com/jackabox/nova-duplicate-field/pulls)MITPHPPHP &gt;=7.1.0CI failing

Since Oct 31Pushed 3y ago2 watchersCompare

[ Source](https://github.com/jackabox/nova-duplicate-field)[ Packagist](https://packagist.org/packages/jackabox/nova-duplicate-field)[ RSS](/packages/jackabox-nova-duplicate-field/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)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)
===============================================================================================================================================================================

[](#)

### No Longer Maintained

[](#no-longer-maintained)

This plugin is no longer maintained. I've had no time to maintain this as I don't use Nova anymore. I'm looking for someone to take over this and handle it, let me know if you want to maintain it! See Issue #33.

### 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 jackabox/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

36

—

LowBetter than 82% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.4% 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 ~65 days

Recently: every ~98 days

Total

7

Last Release

2365d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e85fe8c9df1795e209ae137de2bb2e74b7f4711bf53dcf14d0cadb9fa280c9d?d=identicon)[jackabox](/maintainers/jackabox)

---

Top Contributors

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

---

Tags

laravelduplicatenova

### Embed Badge

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

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

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-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)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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