PHPackages                             norman-huth/nova-detached-actions - 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. norman-huth/nova-detached-actions

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

norman-huth/nova-detached-actions
=================================

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

v1.0.2(2y ago)01.7k↓100%MITVuePHP ^8.1

Since Dec 7Pushed 2y agoCompare

[ Source](https://github.com/Muetze42/nova-detached-actions)[ Packagist](https://packagist.org/packages/norman-huth/nova-detached-actions)[ RSS](/packages/norman-huth-nova-detached-actions/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

Laravel Nova Detached Actions
=============================

[](#laravel-nova-detached-actions)

This package is no longer necessarily required. Since Laravel Nova [v4.24.0](https://nova.laravel.com/releases/4.24.0), there are now also standalone actions:
[Registering Actions: Standalone Actions](https://nova.laravel.com/docs/4.0/actions/registering-actions.html#standalone-actions)

The idea based on [jeffersonsimaogoncalves/nova-detached-actions](https://github.com/jeffersonsimaogoncalves) by Jefferson Simão Gonçalves.

Install
-------

[](#install)

```
composer require norman-huth/nova-detached-actions
```

Usage
-----

[](#usage)

### Create A Action And Extend DetachedAction Class

[](#create-a-action-and-extend-detachedaction-class)

```
php artisan nova:action MyDetachedAction
```

```
use NormanHuth\NovaDetachedActions\DetachedAction;

class MyDetachedAction extends DetachedAction
```

### Options

[](#options)

#### Destructive Action

[](#destructive-action)

```
public function actions(NovaRequest $request): array
{
    return [
        (new MyDetachedAction)->isDestructive()
    ];
}
```

#### Add Heroicon Icon

[](#add-heroicon-icon)

```
public function actions(NovaRequest $request): array
{
    return [
        (new MyDetachedAction)->icon('users')
    ];
}
```

#### Add FontAwesome Icon

[](#add-fontawesome-icon)

FontAwesome is **NOT** included!

You can optional install Font Awesome free with `php artisan nova-package:font-awesome`.

```
public function actions(NovaRequest $request): array
{
    return [
        (new MyDetachedAction)->faIcon('fa-solid fa-user')
    ];
}
```

#### Add SVG Icon

[](#add-svg-icon)

```
public function actions(NovaRequest $request): array
{
    return [
        (new MyDetachedAction)->svgIcon('
