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 Button

Nova Button Laravel Package

dillingham/nova-button

Add customizable action buttons to Laravel Nova resources. nova-button lets you place buttons on index and detail pages to run Nova actions or open URLs, with confirmation dialogs, conditional visibility, authorization, and styling options.

View on GitHub
Deep Wiki
Context7

Add buttons on Nova index, detail and lens views.

Frequently asked questions about Nova Button
How do I install dillingham/nova-button in a Laravel Nova application?
Install it with Composer by running composer require dillingham/nova-button, then add the button definitions to your Nova resource or view as described in the package README. The package is presentation-layer tooling for Nova, so integration is normally a Composer require plus template or resource usage rather than service-container wiring. Before installing, confirm the package's declared PHP and illuminate/nova constraints overlap your application's runtime matrix. For new projects, pin to ^1.0.11 so you inherit the latest security-related dependency updates.
Which Laravel, PHP, and Nova versions does dillingham/nova-button support?
The package is Laravel Nova-native, so its supported Nova version and illuminate/* constraints are the key compatibility gate. Check the composer.json constraints for PHP and illuminate/* against your runtime matrix before scheduling the update. Because release 1.0.11 changes dependencies, also review your lockfile's transitive graph for constraint conflicts with other first-party packages.
Can nova-button buttons trigger Nova actions instead of opening a URL?
Yes. nova-button is designed to place customizable action buttons on Nova resources and can either run Nova actions or open URLs. That lets you keep common workflows inside Nova rather than building a separate custom tool for each operation. Use Nova's action authorization alongside the package's visibility options for server-side control.
Does dillingham/nova-button work on Nova index, detail, and lens views?
Yes, the package adds buttons to Nova index, detail, and lens views. That makes it suitable for row-level or context-level actions without duplicating UI code across each Nova screen. Confirm the exact placement and field configuration in the README for your Nova version.
How do I add a confirmation dialog to a nova-button button?
nova-button supports confirmation dialogs for its action buttons. Enable the confirmation option on the button definition so users must approve the action before it runs. This is useful for destructive or irreversible operations such as deletes, status changes, or external URL handoffs. Pair it with authorization checks so confirmation is not the only safeguard.
Can I conditionally show or hide nova-button buttons based on user authorization?
Yes. The package supports conditional visibility and authorization, so buttons can be hidden when a user lacks permission or when a resource state does not apply. Use these display rules to reduce UI noise, but keep server-side authorization on the underlying Nova action or route. Visibility controls are not a substitute for enforcing permissions in the backend.
How do I customize the styling of buttons created with nova-button?
nova-button provides styling options for its action buttons, letting you adjust appearance to fit your Nova UI. Use the documented styling and attribute options rather than overriding rendered markup directly, which keeps upgrades safer. If you pass custom HTML attributes, verify how they merge with package-supplied attributes in the renderer.
How do I add a Dusk selector to a nova-button button?
Version 1.0.11 added a dusk attribute contributed via PR #62, forwarding a testing selector through the package's render surface. Pass the dusk attribute on the button definition and confirm it merges with, rather than overrides, any consumer-supplied attributes. After upgrading, run your Dusk suite and inspect the rendered output for the new selector.
Is it safe to upgrade dillingham/nova-button to 1.0.11 in production?
Release 1.0.11 is a patch-level update with dependency bumps driven by security advisories and an additive dusk attribute change; no breaking changes are documented. The main residual risk is the dependency bump's opacity, so diff composer.lock before committing and flag any major-version movement or constraint widening. Run your application tests, especially a Dusk suite that asserts on selectors, and roll out in a branch first.
What are the alternatives to dillingham/nova-button for custom buttons in Laravel Nova?
Nova's built-in actions and custom fields or tools can cover some button use cases, but they often require more wiring for index, detail, and lens placement, URL opening, confirmation dialogs, and conditional visibility. nova-button packages those behaviors into a Composer-distributed, Laravel-native component set. Evaluate alternatives on Nova version compatibility, release cadence, and whether the presentation-layer changes stay additive. For a very narrow need, a small custom Nova component may be simpler than adding a dependency.
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo