New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

javaabu/bulk-actions

Fluent bulk actions for Laravel: each authorized through the Gate with can(), optionally asking for input with a stencil form, run on selected records or everything matching the current filters, chunked and queued for large selections, with the selection and action UI in Blade (javaabu/forms) or Inertia React (@javaabu/forms).
105
Install
composer require javaabu/bulk-actions:v1.0.0-alpha.1
Latest Version:v1.0.0-alpha.1
PHP:^8.4
Laravel:12 · 13
License:MIT
Last Updated:Nov 24, 2026
Links: GitHub  ·  Packagist
Maintainer: dash8x

Bulk Actions

Tests codecov Latest Version on Packagist License: MIT

Fluent bulk actions for Laravel index pages. Each action is authorized through Laravel's Gate, can ask for input with a stencil form, and runs on the selected records or on everything matching the current filters, chunked and queued for large selections. The selection and action UI ships for Blade (javaabu/forms) and Inertia React (@javaabu/forms).

class ArticleBulkActions extends BulkActions
{
    protected ?string $model = Article::class;

    protected function actions(): array
    {
        return [
            DeleteAction::make()->can('delete_articles'),

            Action::make('change_status')
                ->label(__('Change status'))
                ->canEach('update')
                ->form([Select::make('status')->options(ArticleStatuses::class)->required()])
                ->each(fn (Article $article, array $data) => $article->update($data)),
        ];
    }
}
Route::bulkActions('articles', ArticleBulkActions::class);
<x-forms::table model="articles">
    <x-slot:bulk-form :action="$bulk_actions->getUrl()">
        <x-bulk-actions::actions :actions="$bulk_actions" :paginator="$articles" />
    </x-slot:bulk-form>
    …
</x-forms::table>
<BulkActionsTable bulkActions={bulkActions}>{rows}</BulkActionsTable>

Documentation

You'll find the documentation on https://docs.javaabu.com/docs/bulk-actions, and in docs/. AI assistants: start with llms.txt; Laravel Boost picks up the guideline and the javaabu-bulk-actions skill from the package.

Testing

composer test
pnpm install && pnpm test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email info@javaabu.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

javaabu/widgets

WordPress classic-style widgets for Laravel: widget classes with javaabu/stencil...

55 0
javaabu/form-builder

Dynamic forms for Laravel: versioned form definitions and entries in the databas...

33 0
javaabu/stencil

Fluent form schemas for Laravel: define a form once in PHP and render it with Bl...

506 0
javaabu/post-types

WordPress-style post types for Laravel: fluent definitions with taxonomies, stat...

55 0

Version History

Pre-releases (1)
Version Released PHP Laravel License
v1.0.0-alpha.1 ^8.4 ^12.0 || ^13.0 MIT