Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Nova Text Copy Field

Nova Text Copy Field Laravel Package

waynestate/nova-text-copy-field

A Laravel Nova field that displays text with a one-click copy-to-clipboard button, letting admins quickly copy IDs, URLs, tokens, and other values directly from the dashboard. Simple to install and customize.

View on GitHub
Deep Wiki
Context7

Laravel Nova text field with click to copy support

Frequently asked questions about Nova Text Copy Field
How do I install waynestate/nova-text-copy-field in Laravel Nova?
Install it with Composer using composer require waynestate/nova-text-copy-field, then import the field class in your Nova resource. There are no migrations, config files, queues, or API setup involved because this is a presentation-layer Nova field. Confirm that the package version you install matches your Nova major version before rolling it out.
How do I use TextCopy instead of Nova's Text field in a resource?
Add the use statement for the package's TextCopy class, then replace Text::make(...) with TextCopy::make(...) in your Nova resource fields. Because TextCopy extends Nova's native Text field, existing field chains and authorization behavior should continue to work. Verify the field on staging before swapping it across many resources.
Does this package support Laravel Nova 5?
Yes, version 3.0.0 is the Nova 5 compatibility release and includes a refactor to the Nova 5 field API. Nova 5 also moves the front end to Vue 3 and raises the PHP and Laravel floor, so treat this upgrade as part of a Nova 4 to 5 migration. Do not plan it as an independent package upgrade.
What Laravel and PHP versions are required?
The package does not publish a detailed compatibility matrix in the provided context, so its practical floor follows Nova 5's PHP and Laravel requirements when you use v3.0.0. Check the package's Composer constraints against your application before upgrading. For Nova 4 projects, use the package release that matches that Nova major and verify it in staging.
Can I still use Nova Text field methods like onlyOnDetail, sortable, and canSee?
Yes, TextCopy subclasses Nova's Text field, so standard chainables such as onlyOnDetail, onlyOnIndex, sortable, textAlign, canSee, resolveUsing, and displayUsing should keep working. That means existing authorization gates and computed values are not expected to change during the swap. Still test any sensitive canSee or resolveUsing logic in a non-production environment.
How do I customize the copy field's display or behavior?
The package is a small presentation field with no config file, so customization is mainly through Nova Text field methods and chainables. For deeper changes to the button or rendering behavior, you would need to modify or fork the Vue component and field class. Do not expect package-level configuration options for every display preference.
Is this package safe to use in a production Laravel Nova admin dashboard?
The failure blast radius is low because the package only affects an admin field, not customer-facing data or business logic. However, it has very low adoption, so your own staging verification is likely the only verification you will get. Audit the small code surface and monitor operator feedback after deployment.
What happens if the copy-to-clipboard Vue component fails to load?
A Vue component that fails to mount may render a blank field or throw only in the browser console. There is no server-side signal, health check, or log line described for this package, so a broken admin field can persist until an operator reports it. Check the browser console after Nova or front-end asset changes.
Are there alternatives to this package for copying text in Laravel Nova?
First check whether Nova 5's native field capabilities already cover plain text with copy-to-clipboard, because removing an unnecessary dependency is better than maintaining one. If native Nova does not support the copy behavior you need, this package or a small custom Nova field are the main options. Evaluate native support before adopting or keeping a third-party field.
How is this package maintained and what are the upgrade risks?
It is maintained by Wayne State University with two contributors, one star, and zero dependents, so community pressure-testing is minimal. Its release cadence tracks Nova majors, and v3.0.0 shipped without a compatibility matrix, migration guide, or deprecation notes. Every future Nova major can become a gating item, and undisclosed breaking changes are possible after refactors.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names