Laravel Livewire Tables Documentation

🎉 Enjoying this package? Consider sponsoring me on GitHub or buying me a beer.

This is the documentation for v2 but the latest version is v3. You can switch versions in the menu at the top. Check your current version with the following command:

composer show rappasoft/laravel-livewire-tables

Creating Bulk Actions

There are 3 ways to define your bulk actions.

They all do the same thing except provide different levels of flexibility.

The key is the Livewire method to call, and the value is the name of the item in the bulk actions dropdown.

Property

The first way to define your bulk actions is with the bulkActions component property:

1public array $bulkActions = [
2 'exportSelected' => 'Export',
3];

Method

You can also use the bulkActions method on the component:

1public function bulkActions(): array
2{
3 return [
4 'exportSelected' => 'Export',
5 ];
6}

Configuration

You can also set them via the component's configure method:

1public function configure(): void
2{
3 $this->setBulkActions([
4 'exportSelected' => 'Export',
5 ]);
6}