PHPackages                             accelade/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. [Templating &amp; Views](/categories/templating)
4. /
5. accelade/actions

ActiveLibrary[Templating &amp; Views](/categories/templating)

accelade/actions
================

Action buttons and modals for Accelade - Filament-style actions with Blade templates

v1.0.0(3mo ago)0240[3 PRs](https://github.com/accelade/actions/pulls)2MITPHPPHP ^8.2CI passing

Since Jan 19Pushed 1mo agoCompare

[ Source](https://github.com/accelade/actions)[ Packagist](https://packagist.org/packages/accelade/actions)[ Docs](https://github.com/accelade/actions)[ GitHub Sponsors](https://github.com/fadymondy)[ RSS](/packages/accelade-actions/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (10)Versions (6)Used By (2)

Accelade Actions
================

[](#accelade-actions)

**Filament-Style Actions for Accelade**

[![Tests](https://github.com/accelade/actions/actions/workflows/tests.yml/badge.svg)](https://github.com/accelade/actions/actions)[![Latest Version](https://camo.githubusercontent.com/dfb6e15f63098e1b9e718d318bdde80f5bd8b54f8bfd855601689197736df050/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616363656c6164652f616374696f6e73)](https://packagist.org/packages/accelade/actions)[![Total Downloads](https://camo.githubusercontent.com/c96007573a0e126f5d2c57bd3fb2404fd6ec70e22c533ee670cb827241e93d35/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616363656c6164652f616374696f6e73)](https://packagist.org/packages/accelade/actions)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

---

Build interactive action buttons with modals, confirmations, and server-side execution - all using Accelade's reactive Blade components.

```
use Accelade\Actions\Action;
use Accelade\Actions\DeleteAction;

// Simple action button
Action::make('save')
    ->label('Save Changes')
    ->icon('check')
    ->color('success')
    ->url(route('posts.store'));

// Delete with confirmation
DeleteAction::make()
    ->url(fn ($record) => route('posts.destroy', $record))
    ->requiresConfirmation()
    ->modalHeading('Delete Post')
    ->modalDescription('Are you sure? This cannot be undone.');
```

---

Features
--------

[](#features)

- **Fluent API** — Filament-style action builder with chainable methods
- **Confirmation Modals** — Built-in confirmation dialogs with customizable text
- **Server Actions** — Execute closures on the server via secure AJAX
- **SPA Navigation** — Integrates with Accelade's SPA navigation system
- **Multiple Variants** — Button, link, and icon-only styles
- **Color Schemes** — Primary, secondary, success, danger, warning, info
- **Action Groups** — Dropdown menus for multiple actions
- **Authorization** — Closure-based authorization checks

---

Installation
------------

[](#installation)

```
composer require accelade/actions
```

The package auto-registers with Laravel. To publish assets:

```
php artisan actions:install
```

Add to your layout:

```

    @actionsStyles

    {{ $slot }}

    @actionsScripts

```

---

Quick Start
-----------

[](#quick-start)

### Basic Action Button

[](#basic-action-button)

```
@php
    $action = Action::make('edit')
        ->label('Edit')
        ->icon('pencil')
        ->color('primary')
        ->url(route('posts.edit', $post));
@endphp

```

### Delete with Confirmation

[](#delete-with-confirmation)

```
@php
    $deleteAction = DeleteAction::make()
        ->url(route('posts.destroy', $post));
@endphp

```

### Server-Side Action

[](#server-side-action)

```
@php
    $action = Action::make('publish')
        ->label('Publish')
        ->icon('check')
        ->color('success')
        ->requiresConfirmation()
        ->action(function ($record, $data) {
            $record->update(['published_at' => now()]);
            return ['message' => 'Post published!'];
        });
@endphp

```

---

Action Types
------------

[](#action-types)

TypeDescription`Action`Standard action button`ViewAction`Navigate to view page`EditAction`Navigate to edit page`CreateAction`Navigate to create page`DeleteAction`Delete with confirmation`ActionGroup`Dropdown menu of actions---

Colors
------

[](#colors)

```
->color('primary')   // Indigo
->color('secondary') // Gray
->color('success')   // Green
->color('danger')    // Red
->color('warning')   // Yellow
->color('info')      // Cyan
```

---

Variants
--------

[](#variants)

```
// Standard button (default)
->button()

// Text link style
->link()

// Icon-only button
->iconButton()

// Outlined style
->outlined()
```

---

Sizes
-----

[](#sizes)

```
->size('xs')  // Extra small
->size('sm')  // Small
->size('md')  // Medium (default)
->size('lg')  // Large
->size('xl')  // Extra large
```

---

Confirmation Modal
------------------

[](#confirmation-modal)

```
Action::make('delete')
    ->requiresConfirmation()
    ->modalHeading('Delete Record')
    ->modalDescription('Are you sure you want to delete this?')
    ->modalSubmitActionLabel('Yes, Delete')
    ->modalCancelActionLabel('Cancel')
    ->confirmDanger();
```

---

Action Groups
-------------

[](#action-groups)

```
@php
    $group = ActionGroup::make([
        ViewAction::make()->url(route('posts.show', $post)),
        EditAction::make()->url(route('posts.edit', $post)),
        DeleteAction::make()->url(route('posts.destroy', $post)),
    ])->tooltip('Actions');
@endphp

```

---

Authorization
-------------

[](#authorization)

```
Action::make('delete')
    ->authorize(fn ($record) => auth()->user()->can('delete', $record))
    ->hidden(fn ($record) => $record->is_protected);
```

---

Documentation
-------------

[](#documentation)

GuideDescription[Getting Started](docs/getting-started.md)Installation and setup[Actions](docs/actions.md)Building action buttons[Modals](docs/modals.md)Confirmation dialogs[API Reference](docs/api-reference.md)Complete API docs---

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 11.x or 12.x
- Accelade 0.1+

---

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) for details.

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance91

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.3% 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

Unknown

Total

1

Last Release

110d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2147eb2fca7ab5f0124d0fafd88ba2d2a5dfa3a0036fb8872d1084b7cba29366?d=identicon)[fadymondy](/maintainers/fadymondy)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (24 commits)")[![fadymondy](https://avatars.githubusercontent.com/u/11937812?v=4)](https://github.com/fadymondy "fadymondy (21 commits)")

---

Tags

laravelbladebuttonsactionsmodalsconfirmationaccelade

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/accelade-actions/health.svg)

```
[![Health](https://phpackages.com/badges/accelade-actions/health.svg)](https://phpackages.com/packages/accelade-actions)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[glhd/gretel

270305.7k4](/packages/glhd-gretel)[radic/blade-extensions

Laravel package providing additional Blade extensions: foreach (with $loop data like twig), break, continue, set,array (multiline), etc

271321.7k5](/packages/radic-blade-extensions)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5151.4k](/packages/hasinhayder-tyro-dashboard)[hasinhayder/tyro-login

Tyro Login - Beautiful, customizable authentication views for Laravel 12 &amp; 13

2362.2k2](/packages/hasinhayder-tyro-login)

PHPackages © 2026

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