lemonlabs/nova-action-button-selectors

A Laravel Nova asset.

v1.1.1 2025-06-12 12:23 UTC

This package is auto-updated.

Last update: 2025-06-16 07:19:35 UTC


README

Packagist Version Packagist Downloads

This package allows you to add buttons for Nova actions on the detail page instead having them all within the dropdown menu.

This package is forked from lednerb/nova-action-button-selectors

Requirements

  • php: ^8
  • laravel/nova: ^4|^5

How to install

composer require lemonlabs/nova-action-button-selectors

Detail page example_1

Index page with inline action example_2

Usage

In your Action class define the following trait:

...
use LemonLabs\ActionButtonSelector\ShowAsButton;

class MyAction extends Action
{
    use InteractsWithQueue, Queueable;
    use ShowAsButton;

    ...

If you want to hide the button on some Detail pages, use the following method in the Nova Model's actions array:

...
 public function actions(NovaRequest $request)
    {
        return [
            MyCustomAction::make()
                ->onlyOnDetail()
                ->withoutConfirmation()
                ->showAsButton(false),

            ...