PHPackages                             tanvirofficials/copy-clone - 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. tanvirofficials/copy-clone

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

tanvirofficials/copy-clone
==========================

A Laravel Nova Package for Copy or clone a resource Data.

2.4.0(4y ago)712.9k↓33.3%2[1 issues](https://github.com/tanvirofficials/CopyClone/issues)MITPHPPHP &gt;=7.1.0CI failing

Since Mar 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tanvirofficials/CopyClone)[ Packagist](https://packagist.org/packages/tanvirofficials/copy-clone)[ RSS](/packages/tanvirofficials-copy-clone/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

**Copy Clone - A laravel nova package for cloning any resource data.**
======================================================================

[](#copy-clone---a-laravel-nova-package-for-cloning-any-resource-data)

By →**tanvirofficials**
-----------------------

[](#by-tanvirofficials)

### Install Copy-clone package to your nova project

[](#install-copy-clone-package-to-your-nova-project)

```
$ composer require tanvirofficials/copy-clone
```

Usage
-----

[](#usage)

```
use Tanvirofficials\CopyClone\CopyClone;
```

```
CopyClone::make()
    ->withMeta([
        'resource' => 'posts', // resource url
        'model' => 'App\Post', // model path
        'id' => $this->id, // id of record
        'relations' => ['tags', 'comments'], // an array of any relations to load (nullable).
        'except' => ['status'], // an array of fields to not replicate (nullable).
        'override' => ['status' => 'published'] // an array of fields and values which will be set on the modal after Cloning(nullable).
    ]),
```

**You can either place it on the bottom right or top right corner.**

**For the bottom right corner , place the code bellow all of your nova feild.**

[![Demo Image 1.1](https://camo.githubusercontent.com/e7b9c1dfbd0d9c1d574f224a574e94c0ab8dfa22d7dd7ef081d9bc8562872bb0/68747470733a2f2f6c6976652e737461746963666c69636b722e636f6d2f36353533352f34393731363136353131365f366231313432353261625f6b2e6a7067)](https://camo.githubusercontent.com/e7b9c1dfbd0d9c1d574f224a574e94c0ab8dfa22d7dd7ef081d9bc8562872bb0/68747470733a2f2f6c6976652e737461746963666c69636b722e636f6d2f36353533352f34393731363136353131365f366231313432353261625f6b2e6a7067)

**For the top right corner , place the code on the top of all of your nova feild.**

[![Demo Image 1.2](https://camo.githubusercontent.com/e378236dcf6df27de4fea21ea8609ee48cf9b0eae01ea915c263bda467e8489a/68747470733a2f2f6c6976652e737461746963666c69636b722e636f6d2f36353533352f34393731363438303134325f303738323535613137395f6b2e6a7067)](https://camo.githubusercontent.com/e378236dcf6df27de4fea21ea8609ee48cf9b0eae01ea915c263bda467e8489a/68747470733a2f2f6c6976652e737461746963666c69636b722e636f6d2f36353533352f34393731363438303134325f303738323535613137395f6b2e6a7067)

**You can customize the Copy clone button text→**

```
CopyClone::make()
    ->withMeta([
           .... include other metas .... ,

          'button_text' => 'Custom Copy\Clone Button', // By deafult its copy\clone  icon.

    ]),
```

[![Demo image 1.3](https://camo.githubusercontent.com/1b68869d29e08d2132db2396a7d713880424ab515786d969e1b4741c99ec42d8/68747470733a2f2f6c6976652e737461746963666c69636b722e636f6d2f36353533352f34393731363438313237375f373736323439373866385f6b2e6a7067)](https://camo.githubusercontent.com/1b68869d29e08d2132db2396a7d713880424ab515786d969e1b4741c99ec42d8/68747470733a2f2f6c6976652e737461746963666c69636b722e636f6d2f36353533352f34393731363438313237375f373736323439373866385f6b2e6a7067)

### You can customize your own dialogue box. By Default →

[](#you-can-customize-your-own-dialogue-box-by-default-)

Customization of confirm dialogue box .
---------------------------------------

[](#customization-of-confirm-dialogue-box-)

***→Use title,body,confirm\_button\_text and cancle\_button\_text meta for customization***

[![Demo image 2](https://camo.githubusercontent.com/bdf3baf479d5a89dfae1a1d025759307a91ee31df6845df6e8c07b32b20038a8/68747470733a2f2f6c6976652e737461746963666c69636b722e636f6d2f36353533352f34393731313933393334325f373536633864363361635f6b2e6a7067)](https://camo.githubusercontent.com/bdf3baf479d5a89dfae1a1d025759307a91ee31df6845df6e8c07b32b20038a8/68747470733a2f2f6c6976652e737461746963666c69636b722e636f6d2f36353533352f34393731313933393334325f373536633864363361635f6b2e6a7067)

```
CopyClone::make()
    ->withMeta([
           .... include other metas .... ,

           'title' => 'Custom Title',  // by default 'title' => 'Confirmation'
           'body' => 'Custom Body',   // by default 'body' => 'Are you sure ?'
           'confirm_button_text' => 'Custom Confirm Button' ,   // by default 'confirm_button_text' => 'Copy\Clone'
           'cancle_button_text' => 'Custom Cancle Button'   // by default 'cancle_button_text'  => 'Cancle'
    ]),
```

[![Demo image 3](https://camo.githubusercontent.com/a1c863557f47d4838470eb3698b7405c6ad1c901abfb5065d1b25a4db863bb64/68747470733a2f2f6c6976652e737461746963666c69636b722e636f6d2f36353533352f34393731313932323934325f306437336639373238355f6b2e6a7067)](https://camo.githubusercontent.com/a1c863557f47d4838470eb3698b7405c6ad1c901abfb5065d1b25a4db863bb64/68747470733a2f2f6c6976652e737461746963666c69636b722e636f6d2f36353533352f34393731313932323934325f306437336639373238355f6b2e6a7067)

***→This package only available in Resource Detail page.***

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~92 days

Recently: every ~138 days

Total

7

Last Release

1689d ago

Major Versions

1.0.0 → 2.0.02020-03-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/89feec23ba2e7380efe30764a6d1cd6ac27533cf240c1e786683438c9dbf9a09?d=identicon)[tanvirofficials](/maintainers/tanvirofficials)

---

Top Contributors

[![tanvirofficials](https://avatars.githubusercontent.com/u/54736712?v=4)](https://github.com/tanvirofficials "tanvirofficials (31 commits)")

---

Tags

laravelcloneduplicatecopynovacopy-clone

### Embed Badge

![Health badge](/badges/tanvirofficials-copy-clone/health.svg)

```
[![Health](https://phpackages.com/badges/tanvirofficials-copy-clone/health.svg)](https://phpackages.com/packages/tanvirofficials-copy-clone)
```

###  Alternatives

[myclabs/deep-copy

Create deep copies (clones) of your objects

8.9k849.8M169](/packages/myclabs-deep-copy)[optimistdigital/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2872.1M6](/packages/optimistdigital-nova-sortable)[outl1ne/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2861.8M9](/packages/outl1ne-nova-sortable)[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

14720.0k](/packages/markwalet-nova-modal-response)

PHPackages © 2026

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